Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Move coverity Dockerfile USER scitt fix before CMD exec
Browse files Browse the repository at this point in the history
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
  • Loading branch information
pdxjohnny committed Nov 20, 2023
1 parent 8af7d37 commit 5c0918b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
# $ docker run --rm -ti -w /src/src/scitt-api-emulator -v $PWD:/src/src/scitt-api-emulator -p 8000:8000 ghcr.io/scitt-community/scitt-api-emulator:main
FROM python:3.11

# CWE-269 Configure alternate docker user
RUN useradd scitt
USER scitt

WORKDIR /usr/src/scitt-api-emulater

COPY setup.py ./
Expand All @@ -19,4 +15,8 @@ COPY . .

RUN pip install --no-cache-dir -e .

# CWE-269 Configure alternate docker user
RUN useradd scitt
USER scitt

CMD scitt-emulator server --workspace workspace/ --tree-alg CCF

0 comments on commit 5c0918b

Please sign in to comment.