From a28d4b22dc290b034d312fbd59ba6295f008ca2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 17 Sep 2021 16:25:11 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9E=95=20Add=20parent=20dependency=20to?= =?UTF-8?q?=20requirements.txt=20to=20get=20Dependabots=20updates=20for=20?= =?UTF-8?q?it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-images/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-images/requirements.txt b/docker-images/requirements.txt index 38694cb7..10fd235e 100644 --- a/docker-images/requirements.txt +++ b/docker-images/requirements.txt @@ -1 +1,2 @@ +uwsgi==2.0.19.1 flask==2.0.1 From db8e5009934c12cd90baaa26d6459a83d143de85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 17 Sep 2021 16:26:08 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=94=A7=20Add=20pip=20flag=20--no-cach?= =?UTF-8?q?e-dir=20to=20reduce=20disk=20size=20used?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-images/python2.7.dockerfile | 2 +- docker-images/python3.6.dockerfile | 2 +- docker-images/python3.7.dockerfile | 2 +- docker-images/python3.8-alpine.dockerfile | 2 +- docker-images/python3.8.dockerfile | 2 +- docker-images/python3.9.dockerfile | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-images/python2.7.dockerfile b/docker-images/python2.7.dockerfile index bbfac604..55bdaf88 100644 --- a/docker-images/python2.7.dockerfile +++ b/docker-images/python2.7.dockerfile @@ -6,7 +6,7 @@ LABEL maintainer="Sebastian Ramirez " # Newer Flask versions don't support Python 2.7 (Python 2.7 reached end of life long ago) # So for this tag just install whatever is available for Python 2.7, don't use # Dependabot's updated requirements -RUN pip install flask +RUN pip install --no-cache-dir flask # URL under which static (not modified by Python) files will be requested # They will be served by Nginx directly, without being handled by uWSGI diff --git a/docker-images/python3.6.dockerfile b/docker-images/python3.6.dockerfile index 6c114c1b..b1e59e2e 100644 --- a/docker-images/python3.6.dockerfile +++ b/docker-images/python3.6.dockerfile @@ -4,7 +4,7 @@ LABEL maintainer="Sebastian Ramirez " # Install requirements COPY requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt # URL under which static (not modified by Python) files will be requested # They will be served by Nginx directly, without being handled by uWSGI diff --git a/docker-images/python3.7.dockerfile b/docker-images/python3.7.dockerfile index fc125a09..ce2be258 100644 --- a/docker-images/python3.7.dockerfile +++ b/docker-images/python3.7.dockerfile @@ -4,7 +4,7 @@ LABEL maintainer="Sebastian Ramirez " # Install requirements COPY requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt # URL under which static (not modified by Python) files will be requested # They will be served by Nginx directly, without being handled by uWSGI diff --git a/docker-images/python3.8-alpine.dockerfile b/docker-images/python3.8-alpine.dockerfile index 0dfa599c..82a7cdf9 100644 --- a/docker-images/python3.8-alpine.dockerfile +++ b/docker-images/python3.8-alpine.dockerfile @@ -4,7 +4,7 @@ LABEL maintainer="Sebastian Ramirez " # Install requirements COPY requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt # URL under which static (not modified by Python) files will be requested # They will be served by Nginx directly, without being handled by uWSGI diff --git a/docker-images/python3.8.dockerfile b/docker-images/python3.8.dockerfile index 08c36ca5..609f59b9 100644 --- a/docker-images/python3.8.dockerfile +++ b/docker-images/python3.8.dockerfile @@ -4,7 +4,7 @@ LABEL maintainer="Sebastian Ramirez " # Install requirements COPY requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt # URL under which static (not modified by Python) files will be requested # They will be served by Nginx directly, without being handled by uWSGI diff --git a/docker-images/python3.9.dockerfile b/docker-images/python3.9.dockerfile index 54722eb2..8043a7c8 100644 --- a/docker-images/python3.9.dockerfile +++ b/docker-images/python3.9.dockerfile @@ -4,7 +4,7 @@ LABEL maintainer="Sebastian Ramirez " # Install requirements COPY requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt # URL under which static (not modified by Python) files will be requested # They will be served by Nginx directly, without being handled by uWSGI From 9e7a56b894c65c7afe71003b9797a76df75a8bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 17 Sep 2021 16:35:57 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=94=A5=20Remove=20uwsgi=20from=20requ?= =?UTF-8?q?irements=20as=20Alpine=20would=20try=20to=20build=20them=20agai?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-images/requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/docker-images/requirements.txt b/docker-images/requirements.txt index 10fd235e..38694cb7 100644 --- a/docker-images/requirements.txt +++ b/docker-images/requirements.txt @@ -1,2 +1 @@ -uwsgi==2.0.19.1 flask==2.0.1