Skip to content

Commit 23ca5b9

Browse files
committed
fix: add missing WORKDIR /app in production stage
The multi-stage build conversion in livekit-examples#56 moved WORKDIR /app into the build stage, but each FROM resets the working directory. Without WORKDIR in the production stage, CMD runs from / and fails with "Failed to spawn: src/agent.py - No such file or directory". This matches the CLI's embedded template (livekit-cli PR #789).
1 parent 2c53ee3 commit 23ca5b9

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)