Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -56,7 +56,7 @@ RUN apk add --no-cache -t build-dependencies \
|
|
56 |
&& rm -rf /root/.cache
|
57 |
|
58 |
# Copy application files and set ownership to searxng user and group
|
59 |
-
COPY --chown=searxng:searxng searx
|
60 |
|
61 |
# Set build arguments for timestamps and version info
|
62 |
ARG TIMESTAMP_SETTINGS=0
|
@@ -64,9 +64,9 @@ ARG TIMESTAMP_UWSGI=0
|
|
64 |
ARG VERSION_GITCOMMIT=unknown
|
65 |
|
66 |
# Compile Python files, set timestamps, and compress static assets
|
67 |
-
RUN su searxng -c "/usr/bin/python3 -m compileall -q searx" \
|
68 |
-
&& touch -c --date=@${TIMESTAMP_SETTINGS} searx/settings.yml \
|
69 |
-
&& touch -c --date=@${TIMESTAMP_UWSGI} dockerfiles/uwsgi.ini \
|
70 |
&& find /usr/local/searxng/searx/static -a \( -name '*.html' -o -name '*.css' -o -name '*.js' \
|
71 |
-o -name '*.svg' -o -name '*.ttf' -o -name '*.eot' \) \
|
72 |
-type f -exec gzip -9 -k {} \+ -exec brotli --best {} \+
|
|
|
56 |
&& rm -rf /root/.cache
|
57 |
|
58 |
# Copy application files and set ownership to searxng user and group
|
59 |
+
COPY --chown=searxng:searxng ./searx /code/searxng/searx
|
60 |
|
61 |
# Set build arguments for timestamps and version info
|
62 |
ARG TIMESTAMP_SETTINGS=0
|
|
|
64 |
ARG VERSION_GITCOMMIT=unknown
|
65 |
|
66 |
# Compile Python files, set timestamps, and compress static assets
|
67 |
+
RUN su searxng -c "/usr/bin/python3 -m compileall -q /code/searxng/searx" \
|
68 |
+
&& touch -c --date=@${TIMESTAMP_SETTINGS} /code/searxng/searx/settings.yml \
|
69 |
+
&& touch -c --date=@${TIMESTAMP_UWSGI} /code/searxng/dockerfiles/uwsgi.ini \
|
70 |
&& find /usr/local/searxng/searx/static -a \( -name '*.html' -o -name '*.css' -o -name '*.js' \
|
71 |
-o -name '*.svg' -o -name '*.ttf' -o -name '*.eot' \) \
|
72 |
-type f -exec gzip -9 -k {} \+ -exec brotli --best {} \+
|