Skip to content

Commit

Permalink
disable login, create homedir, order
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Nov 25, 2024
1 parent 3616a8e commit 7630fe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM python:3.12
WORKDIR /tmp
COPY --from=builder /src/dist/*.whl .
RUN pip3 install *.whl && rm *.whl
RUN useradd -r -u 1000 -g root evrec
RUN useradd -u 1000 -m -s /sbin/nologin evrec
USER evrec
CMD ["--host", "0.0.0.0", "--port", "8080"]
ENTRYPOINT ["evrec_server"]
CMD ["--host", "0.0.0.0", "--port", "8080"]

0 comments on commit 7630fe0

Please sign in to comment.