From e0643cf45ce9a4fb1448c2a25c8d86162b24e085 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Fri, 19 Aug 2022 19:23:29 +0200 Subject: [PATCH] Disable the cache; don't upgrade pip if not req --- core/admin/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/admin/Dockerfile b/core/admin/Dockerfile index fad27574..5b02f07f 100644 --- a/core/admin/Dockerfile +++ b/core/admin/Dockerfile @@ -37,10 +37,10 @@ WORKDIR /app COPY requirements-prod.txt requirements.txt RUN set -eu \ && apk add --no-cache libressl curl \ - && pip install --upgrade pip \ - && pip install --extra-index-url=https://www.piwheels.org/simple -r requirements.txt --only-binary=:all: --no-binary=Flask-bootstrap,PyYAML,SQLAlchemy \ + && pip install --no-cache --extra-index-url=https://www.piwheels.org/simple -r requirements.txt --only-binary=:all: --no-binary=Flask-bootstrap,PyYAML,SQLAlchemy \ || ( apk add --no-cache postgresql-libs mariadb-connector-c \ && apk add --no-cache --virtual build-dep libressl-dev libffi-dev python3-dev build-base postgresql-dev mariadb-connector-c-dev cargo \ + && pip install --upgrade pip \ && pip install -r requirements.txt \ && apk del --no-cache build-dep )