Skip to content

Commit

Permalink
fix JSONArgsRecommended (#123)
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 a5db5ff commit 549a400
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 aggrec_server
RUN useradd -u 1000 -m -s /sbin/nologin aggrec
USER aggrec
ENTRYPOINT ["aggrec_server"]
CMD ["--host", "0.0.0.0", "--port", "8080"]

0 comments on commit 549a400

Please sign in to comment.