Add --no-cache flag
This commit is contained in:
parent
487d77e90e
commit
6352e9df70
|
@ -4,9 +4,9 @@ FROM alpine:latest
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apk update \
|
RUN apk update --no-cache \
|
||||||
# Install packages
|
# Install packages
|
||||||
&& apk add \
|
&& apk add --no-cache \
|
||||||
tzdata \
|
tzdata \
|
||||||
build-base freetype-dev libpng-dev openblas-dev \
|
build-base freetype-dev libpng-dev openblas-dev \
|
||||||
python3 py3-pip py3-numpy py3-pandas py3-matplotlib \
|
python3 py3-pip py3-numpy py3-pandas py3-matplotlib \
|
||||||
|
@ -24,9 +24,9 @@ RUN apk update \
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
# Install requirements
|
# Install requirements
|
||||||
RUN apk update \
|
RUN apk update --no-cache \
|
||||||
# Install tmp packages
|
# 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
|
# Install PIP packages
|
||||||
&& python3 -m pip install --no-cache-dir -r requirements.txt \
|
&& python3 -m pip install --no-cache-dir -r requirements.txt \
|
||||||
# Delete tmp packages
|
# Delete tmp packages
|
||||||
|
|
Loading…
Reference in New Issue