From 3b236e8bf3824a6bd876274a12b335d15758b2db Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Tue, 17 Dec 2024 23:03:02 +0300 Subject: [PATCH] Update Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e1b23c0..6f988c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,12 +53,13 @@ ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" PYTHONPATH=/backend \ UWSGI_LAZY_APPS=1 UWSGI_WSGI_ENV_BEHAVIOR=holy PYTHONDONTWRITEBYTECODE=1 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 0644 /backend/storage \ - && chown -R uwsgi:uwsgi /backend\ + && mkdir -p -m 0744 /backend/storage \ + && chown -R uwsgi:uwsgi /backend \ && source "${VIRTUAL_ENV}/bin/activate" \ && pip install --upgrade pip \ && pip install --upgrade setuptools