Skip to content

Commit

Permalink
Dockerfile: Create app folder with non-root permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed May 5, 2024
1 parent 61750e4 commit c3ca6c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ FROM python:3.10-slim
ARG GITHUB_REF
ENV VERSION=$GITHUB_REF

COPY --from=builder /code/.venv/lib/ /usr/local/lib/
COPY --from=builder /code/main.py /code/

RUN useradd --no-create-home faf

COPY --from=builder /code/.venv/lib/ /usr/local/lib/
COPY --from=builder --chown=faf:faf /code/main.py /code/

WORKDIR /code/
USER faf

Expand Down

0 comments on commit c3ca6c1

Please sign in to comment.