Skip to content

Commit 841502f

Browse files
Merge pull request #45 from kira-offgrid/fix-dockerfile.security.missing-user-entrypoint.missing-user-entrypoint-dockerfile-f3f9
Fix: Container Running with Dangerous Root User Privileges in Dockerfile
2 parents 66c4dd1 + 81ee129 commit 841502f

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
@@ -34,4 +34,6 @@ RUN pip install --no-cache-dir flash-attn --no-build-isolation
3434

3535
# Set working directory and entrypoint
3636
WORKDIR /app/
37+
RUN adduser --disabled-password --gecos '' --shell /bin/bash appuser
38+
USER appuser
3739
ENTRYPOINT ["/app/.venv/bin/python", "-m", "docext.app.app", "--no-share", "--ui_port", "7860"]

0 commit comments

Comments
 (0)