From 6352e9df702d08ecc4c29a1d06f0d5708d523f7e Mon Sep 17 00:00:00 2001 From: Gabriele De Rosa <4183824+derogab@users.noreply.github.com> Date: Fri, 26 Nov 2021 12:16:43 +0100 Subject: [PATCH] Add --no-cache flag --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index d134e23..d69e2df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,9 @@ FROM alpine:latest WORKDIR /usr/src/app # Install dependencies -RUN apk update \ +RUN apk update --no-cache \ # Install packages - && apk add \ + && apk add --no-cache \ tzdata \ build-base freetype-dev libpng-dev openblas-dev \ python3 py3-pip py3-numpy py3-pandas py3-matplotlib \ @@ -24,9 +24,9 @@ RUN apk update \ COPY requirements.txt . # Install requirements -RUN apk update \ +RUN apk update --no-cache \ # Install tmp packages - && apk add --virtual build-deps gcc python3-dev musl-dev \ + && apk add --no-cache --virtual build-deps gcc python3-dev musl-dev \ # Install PIP packages && python3 -m pip install --no-cache-dir -r requirements.txt \ # Delete tmp packages