Run runtime images as the built-in non-root .NET app user and install Web runtime OS dependencies with --no-install-recommends.
This commit is contained in:
@@ -33,5 +33,7 @@ WORKDIR /app
|
||||
# Копируем только AOT-результаты из билда
|
||||
COPY --from=build /app/publish .
|
||||
|
||||
USER $APP_UID
|
||||
|
||||
# Запуск скомпилированного AOT бинарного файла напрямую
|
||||
ENTRYPOINT ["./GmRelay.Bot"]
|
||||
|
||||
Reference in New Issue
Block a user