From ed458f29825d57b596005c427909b746f407b68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 17 Sep 2021 16:51:09 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9E=95=20Add=20pip=20flag=20--no-cache-d?= =?UTF-8?q?ir=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-alpine3.8.dockerfile | 2 +- docker-images/python3.6.dockerfile | 2 +- docker-images/python3.7-alpine3.8.dockerfile | 2 +- docker-images/python3.7.dockerfile | 2 +- docker-images/python3.8-alpine3.11.dockerfile | 2 +- docker-images/python3.8.dockerfile | 2 +- docker-images/python3.9-alpine3.13.dockerfile | 2 +- docker-images/python3.9.dockerfile | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docker-images/python2.7.dockerfile b/docker-images/python2.7.dockerfile index c065225..16840f6 100644 --- a/docker-images/python2.7.dockerfile +++ b/docker-images/python2.7.dockerfile @@ -6,6 +6,6 @@ LABEL maintainer="Sebastian Ramirez " # Newer 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 COPY ./app /app diff --git a/docker-images/python3.6-alpine3.8.dockerfile b/docker-images/python3.6-alpine3.8.dockerfile index e781e2c..aaeee7e 100644 --- a/docker-images/python3.6-alpine3.8.dockerfile +++ b/docker-images/python3.6-alpine3.8.dockerfile @@ -3,6 +3,6 @@ FROM tiangolo/meinheld-gunicorn:python3.6-alpine3.8 LABEL maintainer="Sebastian Ramirez " COPY requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.6.dockerfile b/docker-images/python3.6.dockerfile index 6a7214d..c8a27cd 100644 --- a/docker-images/python3.6.dockerfile +++ b/docker-images/python3.6.dockerfile @@ -3,6 +3,6 @@ FROM tiangolo/meinheld-gunicorn:python3.6 LABEL maintainer="Sebastian Ramirez " COPY requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.7-alpine3.8.dockerfile b/docker-images/python3.7-alpine3.8.dockerfile index 839ec4a..5b14b5b 100644 --- a/docker-images/python3.7-alpine3.8.dockerfile +++ b/docker-images/python3.7-alpine3.8.dockerfile @@ -3,6 +3,6 @@ FROM tiangolo/meinheld-gunicorn:python3.7-alpine3.8 LABEL maintainer="Sebastian Ramirez " COPY requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.7.dockerfile b/docker-images/python3.7.dockerfile index 967fb8e..0e20d10 100644 --- a/docker-images/python3.7.dockerfile +++ b/docker-images/python3.7.dockerfile @@ -3,6 +3,6 @@ FROM tiangolo/meinheld-gunicorn:python3.7 LABEL maintainer="Sebastian Ramirez " COPY requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.8-alpine3.11.dockerfile b/docker-images/python3.8-alpine3.11.dockerfile index 68cbd5c..81e5b10 100644 --- a/docker-images/python3.8-alpine3.11.dockerfile +++ b/docker-images/python3.8-alpine3.11.dockerfile @@ -3,6 +3,6 @@ FROM tiangolo/meinheld-gunicorn:python3.8-alpine3.11 LABEL maintainer="Sebastian Ramirez " COPY requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.8.dockerfile b/docker-images/python3.8.dockerfile index 009d0b3..7d486b9 100644 --- a/docker-images/python3.8.dockerfile +++ b/docker-images/python3.8.dockerfile @@ -3,6 +3,6 @@ FROM tiangolo/meinheld-gunicorn:python3.8 LABEL maintainer="Sebastian Ramirez " COPY requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.9-alpine3.13.dockerfile b/docker-images/python3.9-alpine3.13.dockerfile index 5f0de49..7c142ec 100644 --- a/docker-images/python3.9-alpine3.13.dockerfile +++ b/docker-images/python3.9-alpine3.13.dockerfile @@ -3,6 +3,6 @@ FROM tiangolo/meinheld-gunicorn:python3.9-alpine3.13 LABEL maintainer="Sebastian Ramirez " COPY requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.9.dockerfile b/docker-images/python3.9.dockerfile index 71b0aa4..73a4f85 100644 --- a/docker-images/python3.9.dockerfile +++ b/docker-images/python3.9.dockerfile @@ -3,6 +3,6 @@ FROM tiangolo/meinheld-gunicorn:python3.9 LABEL maintainer="Sebastian Ramirez " COPY requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app From a285314867c5a21a916585bb13eb9ddb888b0890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 17 Sep 2021 16:51:40 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9E=95=20Add=20parent=20dependencies=20t?= =?UTF-8?q?o=20get=20Dependabot=20updates=20for=20them=20too?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-images/requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-images/requirements.txt b/docker-images/requirements.txt index 38694cb..d7d72b6 100644 --- a/docker-images/requirements.txt +++ b/docker-images/requirements.txt @@ -1 +1,3 @@ +meinheld==1.0.2 +gunicorn==20.1.0 flask==2.0.1