Skip to content

Commit 81ee129

Browse files
committed
fix: dockerfile.security.missing-user-entrypoint.missing-user-entrypoint-Dockerfile
1 parent c3058c8 commit 81ee129

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)