Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Dec 17, 2024
1 parent c785146 commit 4ec7c39
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,15 @@ RUN dnf -y upgrade && dnf -y install python3.11 python3.11-pip ca-certificates p
&& groupadd uwsgi && useradd -g uwsgi uwsgi \
&& chown -R uwsgi:uwsgi ${VIRTUAL_ENV} \
&& chown -R uwsgi:uwsgi /usr/share/nltk_data \
&& chown -R uwsgi:uwsgi /backend

USER uwsgi
EXPOSE 5001

RUN mkdir -p -m 0644 /backend/storage \
&& mkdir -p -m 0644 /backend/storage \
&& chown -R uwsgi:uwsgi /backend\
&& source "${VIRTUAL_ENV}/bin/activate" \
&& pip install --upgrade pip \
&& pip install --upgrade setuptools

USER uwsgi
EXPOSE 5001

# Start uWSGI
CMD ["/venv/bin/uwsgi", "--http-auto-chunked", "--http-keepalive"]
HEALTHCHECK --interval=1m --timeout=5s --retries=2 CMD ["curl", "-s", "-f", "--show-error", "http://localhost:5001/"]

0 comments on commit 4ec7c39

Please sign in to comment.