Skip to content

Commit

Permalink
Fix Dockerfile to use along with service-api
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Dec 18, 2024
1 parent 54ae8e3 commit bc2009e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,11 @@ ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" PYTHONPATH=/backend \
RUN dnf -y upgrade && dnf -y install python3.11 python3.11-pip ca-certificates pcre-devel \
&& dnf -y autoremove \
&& dnf clean all \
&& groupadd uwsgi && useradd -g uwsgi uwsgi \
&& chown -R uwsgi:uwsgi ${VIRTUAL_ENV} \
&& chown -R uwsgi:uwsgi /usr/share/nltk_data \
&& mkdir -p -m 0744 /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 bc2009e

Please sign in to comment.