diff --git a/Dockerfile b/Dockerfile index 6f988c2..ff49d61 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/"]