@@ -52,6 +52,7 @@ RUN apk upgrade --no-cache \
54 uwsgi-python3 \
54 uwsgi-python3 \
55 && pip3 install --upgrade pip \
56 && pip3 install --upgrade pip \
56 && pip3 install --no-cache -r requirements.txt \
57 && pip3 install --no-cache -r requirements.txt \
57 && apk del build-dependencies \
58 && apk del build-dependencies \
@@ -64,8 +65,10 @@ RUN su searx -c "/usr/bin/python3 -m compileall -q searx"; \
64 touch -c --date=@${TIMESTAMP_UWSGI} dockerfiles/uwsgi.ini; \
65 touch -c --date=@${TIMESTAMP_UWSGI} dockerfiles/uwsgi.ini; \
65 if [ ! -z $VERSION_GITCOMMIT ]; then\
66 if [ ! -z $VERSION_GITCOMMIT ]; then\
66 echo "VERSION_STRING = VERSION_STRING + \"-$VERSION_GITCOMMIT\"" >> /usr/local/searx/searx/version.py; \
67 echo "VERSION_STRING = VERSION_STRING + \"-$VERSION_GITCOMMIT\"" >> /usr/local/searx/searx/version.py; \
68−
69+ find /usr/local/searx/searx/static -a \( -name '*.html' -o -name '*.css' -o -name '*.js' \
70+ -o -name '*.svg' -o -name '*.ttf' -o -name '*.eot' \) \
71+ -type f -exec gzip -9 -k {} \+ -exec brotli --best {} \+
70# Keep this argument at the end since it change each time
73# Keep this argument at the end since it change each time
71ARG LABEL_DATE=
74ARG LABEL_DATE=