Skip to content

Commit

Permalink
Remove pip installation
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Dec 19, 2024
1 parent 37d0e9a commit efb0ff3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" PYTHONPATH=/backend \
UWSGI_VIRTUALENV=${VIRTUAL_ENV} UWSGI_MASTER=1 UWSGI_WORKERS=4 UWSGI_THREADS=8 UWSGI_MAX_FD=10000 \
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 \
RUN dnf -y upgrade && dnf -y install python3.11 ca-certificates pcre-devel \
&& dnf -y autoremove \
&& dnf clean all \
&& mkdir -p -m 0744 /backend/storage \
&& source "${VIRTUAL_ENV}/bin/activate" \
&& pip install --upgrade pip \
&& pip install --upgrade setuptools
&& source "${VIRTUAL_ENV}/bin/activate"

# Start uWSGI
CMD ["/venv/bin/uwsgi", "--http-auto-chunked", "--http-keepalive"]
Expand Down

0 comments on commit efb0ff3

Please sign in to comment.