Skip to content

Commit 95bedcd

Browse files
authored
fix: add missing WORKDIR /app in production stage (#57)
1 parent 2c53ee3 commit 95bedcd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ RUN adduser \
6868
# This avoids expensive recursive chown and excludes build tools from the final image
6969
COPY --from=build --chown=appuser:appuser /app /app
7070

71+
WORKDIR /app
72+
7173
# Switch to the non-privileged user for all subsequent operations
7274
# This improves security by not running as root
7375
USER appuser

0 commit comments

Comments
 (0)