summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJohannes 'josch' Schauer <josch@debian.org>2021-01-19 12:54:47 +0100
committerJohannes 'josch' Schauer <josch@debian.org>2021-01-19 12:54:47 +0100
commit7a1db4de351875bebb4a8e7ffbe6710ad5b518c5 (patch)
tree41fc39a14842780c6ea061b29a00888e8071ffa8 /Dockerfile
parent075e7e02683d9db1b303de8e8c17ff7da4c62510 (diff)
New upstream version 0.18.0+dfsg1
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 59098e0..3894aa9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM alpine:3.10
+FROM alpine:3.12
ENTRYPOINT ["/sbin/tini","--","/usr/local/searx/dockerfiles/docker-entrypoint.sh"]
EXPOSE 8080
VOLUME /etc/searx
@@ -45,12 +45,14 @@ RUN apk upgrade --no-cache \
ca-certificates \
su-exec \
python3 \
+ py3-pip \
libxml2 \
libxslt \
openssl \
tini \
uwsgi \
uwsgi-python3 \
+ brotli \
&& pip3 install --upgrade pip \
&& pip3 install --no-cache -r requirements.txt \
&& apk del build-dependencies \
@@ -63,8 +65,10 @@ RUN su searx -c "/usr/bin/python3 -m compileall -q searx"; \
touch -c --date=@${TIMESTAMP_UWSGI} dockerfiles/uwsgi.ini; \
if [ ! -z $VERSION_GITCOMMIT ]; then\
echo "VERSION_STRING = VERSION_STRING + \"-$VERSION_GITCOMMIT\"" >> /usr/local/searx/searx/version.py; \
- fi
-
+ fi; \
+ find /usr/local/searx/searx/static -a \( -name '*.html' -o -name '*.css' -o -name '*.js' \
+ -o -name '*.svg' -o -name '*.ttf' -o -name '*.eot' \) \
+ -type f -exec gzip -9 -k {} \+ -exec brotli --best {} \+
# Keep this argument at the end since it change each time
ARG LABEL_DATE=