From 6de719d2f4a4e2c72484c808bb9a219cb9122a14 Mon Sep 17 00:00:00 2001 From: Conrad Date: Tue, 6 Oct 2020 15:22:13 +0200 Subject: [PATCH] Add no cache dir option for pip --- Dockerfile | 4 ++-- entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 715a1ff..bdb2ade 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM alpine:3.12 RUN apk update && apk add --no-cache bash git openssh python3 py3-pip -RUN pip3 install --no-cache-dir -q --upgrade pip -RUN pip3 install --no-cache-dir -q setuptools wheel Django django-extensions pyparsing pydot +RUN python -m pip install --upgrade pip setuptools wheel +RUN pip3 install --no-cache-dir Django django-extensions pyparsing pydot COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 78a92d4..45c275a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -27,7 +27,7 @@ _git_changed() { # PROGRAM echo "Installing dependencies..." -pip3 install -r $INPUT_PIP_PATH +pip3 install --no-cache-dir -r $INPUT_PIP_PATH echo "Creating data model..." cd $INPUT_PROJECT_PATH python3 manage.py graph_models -a -g-o $INPUT_OUTPUT_PATH