summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorRobby O'Connor <rob@oconnor.ninja>2019-08-18 18:16:12 -0400
committerRobert O'Connor <rob@oconnor.ninja>2019-08-18 18:20:58 -0400
commit906320d271d4c8e8aa72b240457ee343edcd4312 (patch)
treebe3eec90550be5e3261d3dd4d5e1f20369aaf41e /Dockerfile
parent8e62f7600f4582b913c92d56ffbafc22e37abe3b (diff)
add --no-cache to package installs
Add --no-cache to apk upgrade and apk add calls.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 4 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index fb4f2cb6..33535837 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -25,8 +25,8 @@ RUN addgroup -g ${SEARX_GID} searx && \
COPY requirements.txt ./requirements.txt
-RUN apk -U upgrade \
- && apk add -t build-dependencies \
+RUN apk upgrade --no-cache \
+ && apk add --no-cache -t build-dependencies \
build-base \
py3-setuptools \
python3-dev \
@@ -36,7 +36,7 @@ RUN apk -U upgrade \
openssl-dev \
tar \
git \
- && apk add \
+ && apk add --no-cache \
ca-certificates \
su-exec \
python3 \
@@ -48,8 +48,7 @@ RUN apk -U upgrade \
uwsgi-python3 \
&& pip3 install --upgrade pip \
&& pip3 install --no-cache -r requirements.txt \
- && apk del build-dependencies \
- && rm -f /var/cache/apk/*
+ && apk del build-dependencies
COPY --chown=searx:searx . .