|
@@ -50,6 +50,7 @@ RUN apk upgrade --no-cache \
|
|
|
tini \
|
|
|
uwsgi \
|
|
|
uwsgi-python3 \
|
|
|
+ brotli \
|
|
|
&& pip3 install --upgrade pip \
|
|
|
&& pip3 install --no-cache -r requirements.txt \
|
|
|
&& apk del build-dependencies
|
|
@@ -61,8 +62,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=
|