on master help sign in
add --no-cache to package installs
906320dRobby O'Connor
Dockerfile+4−5
@@ -25,8 +25,8 @@ RUN addgroup -g ${SEARX_GID} searx && \
25
25
26COPY requirements.txt ./requirements.txt
26COPY requirements.txt ./requirements.txt
27
27
28−RUN apk -U upgrade \
28+RUN apk upgrade --no-cache \
29− && apk add -t build-dependencies \
29+ && apk add --no-cache -t build-dependencies \
30 build-base \
30 build-base \
31 py3-setuptools \
31 py3-setuptools \
32 python3-dev \
32 python3-dev \
@@ -36,7 +36,7 @@ RUN apk -U upgrade \
36 openssl-dev \
36 openssl-dev \
37 tar \
37 tar \
38 git \
38 git \
39− && apk add \
39+ && apk add --no-cache \
40 ca-certificates \
40 ca-certificates \
41 su-exec \
41 su-exec \
42 python3 \
42 python3 \
@@ -48,8 +48,7 @@ RUN apk -U upgrade \
48 uwsgi-python3 \
48 uwsgi-python3 \
49 && pip3 install --upgrade pip \
49 && pip3 install --upgrade pip \
50 && pip3 install --no-cache -r requirements.txt \
50 && pip3 install --no-cache -r requirements.txt \
51− && apk del build-dependencies \
51+ && apk del build-dependencies
52− && rm -f /var/cache/apk/*
53
52
54COPY --chown=searx:searx . .
53COPY --chown=searx:searx . .
55
54