Add no cache dir option for pip

This commit is contained in:
2020-10-06 15:22:13 +02:00
parent 222ce86a6b
commit 6de719d2f4
2 changed files with 3 additions and 3 deletions

View File

@@ -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"]

View File

@@ -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