on master help sign in
add --no-cache to package installs

Add --no-cache to apk upgrade and apk add calls.

commit906320d271d4c8e8aa72b240457ee343edcd4312 authorRobby O'Connor <rob@oconnor.ninja> dateSun 18 Aug 2019, 18:16 (7 years ago) parent8e62f76
1 file changed+4−5
Dockerfile+4−5
Dockerfile+4−5
@@ -25,8 +25,8 @@ RUN addgroup -g ${SEARX_GID} searx && \
2525
2626COPY requirements.txt ./requirements.txt
2727
28−RUN apk -U upgrade \
29− && apk add -t build-dependencies \
28+RUN apk upgrade --no-cache \
29+ && apk add --no-cache -t build-dependencies \
3030 build-base \
3131 py3-setuptools \
3232 python3-dev \
@@ -36,7 +36,7 @@ RUN apk -U upgrade \
3636 openssl-dev \
3737 tar \
3838 git \
39− && apk add \
39+ && apk add --no-cache \
4040 ca-certificates \
4141 su-exec \
4242 python3 \
@@ -48,8 +48,7 @@ RUN apk -U upgrade \
4848 uwsgi-python3 \
4949 && pip3 install --upgrade pip \
5050 && pip3 install --no-cache -r requirements.txt \
51− && apk del build-dependencies \
52− && rm -f /var/cache/apk/*
51+ && apk del build-dependencies
5352
5453COPY --chown=searx:searx . .
5554