set OS user id

This commit is contained in:
Tech Garage 2025-03-21 14:13:41 +03:30
parent 7bb1c4fbce
commit d5ae356052

View file

@ -3,6 +3,7 @@ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/runtime-deps:8.0-noble-c
ENV TZ=Asia/Tehran
WORKDIR /app
EXPOSE 8080
USER $APP_UID
# Copy the published output from the build stage (set by the GitHub Actions workflow)
COPY publish/ .