Fix docker file issue
CI / frontend (push) Canceled after 0s
CI / backend (push) Canceled after 10s

This commit is contained in:
2026-08-12 00:56:55 +08:00
parent e25b57c779
commit 4d95108ac5
3 changed files with 9 additions and 116 deletions
+3 -3
View File
@@ -45,9 +45,9 @@ RUN apt-get update \
COPY --from=build /app/publish .
RUN useradd --uid 1654 --user-group --no-create-home appuser \
&& chown -R appuser:appuser /app
USER appuser
# aspnet:8.0 already ships non-root user `app` (UID/GID 1654).
RUN chown -R app:app /app
USER app
ENV ASPNETCORE_URLS=http://+:8080
EXPOSE 8080