Update Dockerfile

This commit is contained in:
Joseph Cheung 2023-02-28 23:25:01 +08:00
parent edcc0abbfd
commit e456de3476

View file

@ -34,10 +34,10 @@ ARG VERSION_GITCOMMIT=unknown
RUN su searxng -c "/usr/local/bin/python -m compileall -q searx" \ RUN su searxng -c "/usr/local/bin/python -m compileall -q searx" \
&& touch -c --date=@${TIMESTAMP_SETTINGS} searx/settings.yml \ && touch -c --date=@${TIMESTAMP_SETTINGS} searx/settings.yml \
&& touch -c --date=@${TIMESTAMP_UWSGI} dockerfiles/uwsgi.ini \ && touch -c --date=@${TIMESTAMP_UWSGI} dockerfiles/uwsgi.ini
&& find /usr/local/searxng/searx/static -a \( -name '*.html' -o -name '*.css' -o -name '*.js' \ # && find /usr/local/searxng/searx/static -a \( -name '*.html' -o -name '*.css' -o -name '*.js' \
-o -name '*.svg' -o -name '*.ttf' -o -name '*.eot' \) \ # -o -name '*.svg' -o -name '*.ttf' -o -name '*.eot' \) \
-type f -exec gzip -9 -k {} \+ -exec brotli --best {} \+ # -type f -exec gzip -9 -k {} \+ -exec brotli --best {} \+
# Keep these arguments at the end to prevent redundant layer rebuilds # Keep these arguments at the end to prevent redundant layer rebuilds
ARG LABEL_DATE= ARG LABEL_DATE=