fix: add missing WORKDIR /app in production stage (#57)

This commit is contained in:
Shayne Parlo
2026-03-16 08:11:49 -07:00
committed by GitHub
parent 2c53ee3d15
commit 95bedcd581
+2
View File
@@ -68,6 +68,8 @@ RUN adduser \
# This avoids expensive recursive chown and excludes build tools from the final image
COPY --from=build --chown=appuser:appuser /app /app
WORKDIR /app
# Switch to the non-privileged user for all subsequent operations
# This improves security by not running as root
USER appuser