Skip to content

Commit

Permalink
Install pip requirements after system requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Jul 25, 2023
1 parent 8c5c53e commit 1a60608
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile_dev
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ ENV UWSGI_HTTP_AUTO_CHUNKED=1 UWSGI_HTTP_KEEPALIVE=1 UWSGI_LAZY_APPS=1 UWSGI_WSG

## System preparation steps ################################################# ##

# !!! Runtime changes won't affect requirements.txt
RUN zypper -n in gcc libffi-devel && zypper clean && rm -rf /var/cache

COPY requirements.txt requirements_test.txt requirements_k8s.txt /tmp/
# * Install system requirements
# * Install pip requirements
# * Empty system cache to conserve some space
RUN zypper -n in gcc libffi-devel && pip install --no-cache-dir -r /tmp/requirements_test.txt && zypper clean && rm -rf /var/cache
RUN pip install --no-cache-dir -r /tmp/requirements_test.txt

WORKDIR /pcw

Expand Down

0 comments on commit 1a60608

Please sign in to comment.