Skip to content

Commit

Permalink
fix JSONArgsRecommended (#45)
Browse files Browse the repository at this point in the history
* fix JSONArgsRecommended

* add CMD and create user

* disable login, create homedir, order
  • Loading branch information
jschlyter authored Nov 25, 2024
1 parent 9630b48 commit 81f66e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ FROM python:3.12
WORKDIR /tmp
COPY --from=builder /src/dist/*.whl .
RUN pip3 install *.whl && rm *.whl
ENTRYPOINT evrec_server
RUN useradd -u 1000 -m -s /sbin/nologin evrec
USER evrec
ENTRYPOINT ["evrec_server"]
CMD ["--host", "0.0.0.0", "--port", "8080"]

0 comments on commit 81f66e3

Please sign in to comment.