Add no cache dir option for pip
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
FROM alpine:3.12
|
FROM alpine:3.12
|
||||||
RUN apk update && apk add --no-cache bash git openssh python3 py3-pip
|
RUN apk update && apk add --no-cache bash git openssh python3 py3-pip
|
||||||
|
|
||||||
RUN pip3 install --no-cache-dir -q --upgrade pip
|
RUN python -m pip install --upgrade pip setuptools wheel
|
||||||
RUN pip3 install --no-cache-dir -q setuptools wheel Django django-extensions pyparsing pydot
|
RUN pip3 install --no-cache-dir Django django-extensions pyparsing pydot
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ _git_changed() {
|
|||||||
|
|
||||||
# PROGRAM
|
# PROGRAM
|
||||||
echo "Installing dependencies..."
|
echo "Installing dependencies..."
|
||||||
pip3 install -r $INPUT_PIP_PATH
|
pip3 install --no-cache-dir -r $INPUT_PIP_PATH
|
||||||
echo "Creating data model..."
|
echo "Creating data model..."
|
||||||
cd $INPUT_PROJECT_PATH
|
cd $INPUT_PROJECT_PATH
|
||||||
python3 manage.py graph_models -a -g-o $INPUT_OUTPUT_PATH
|
python3 manage.py graph_models -a -g-o $INPUT_OUTPUT_PATH
|
||||||
|
|||||||
Reference in New Issue
Block a user