From 1a60608411481e1a9b5542926590c0d618c87ee3 Mon Sep 17 00:00:00 2001 From: Ricardo Branco Date: Tue, 25 Jul 2023 11:15:28 +0200 Subject: [PATCH] Install pip requirements after system requirements --- Dockerfile_dev | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile_dev b/Dockerfile_dev index 28ab12fa..f89407a5 100644 --- a/Dockerfile_dev +++ b/Dockerfile_dev @@ -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