@@ -52,6 +52,7 @@ RUN apk upgrade --no-cache \
5252 tini \
5353 uwsgi \
5454 uwsgi-python3 \
55+ brotli \
5556 && pip3 install --upgrade pip \
5657 && pip3 install --no-cache -r requirements.txt \
5758 && apk del build-dependencies \
@@ -64,8 +65,10 @@ RUN su searx -c "/usr/bin/python3 -m compileall -q searx"; \
6465 touch -c --date=@${TIMESTAMP_UWSGI} dockerfiles/uwsgi.ini; \
6566 if [ ! -z $VERSION_GITCOMMIT ]; then\
6667 echo "VERSION_STRING = VERSION_STRING + \"-$VERSION_GITCOMMIT\"" >> /usr/local/searx/searx/version.py; \
67− fi
68−
68+ fi; \
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 {} \+
6972
7073# Keep this argument at the end since it change each time
7174ARG LABEL_DATE=