1
0
mirror of https://github.com/searx/searx synced 2024-12-22 01:02:54 +01:00

Install searx as root in Docker

Closes #2901
This commit is contained in:
Noémi Ványi 2022-01-22 18:09:38 +01:00
parent ea38fea711
commit accba7afb2

View File

@ -51,13 +51,14 @@ RUN apk upgrade --no-cache \
&& apk del build-dependencies \
&& rm -rf /root/.cache
COPY --chown=searx:searx . .
COPY searx ./searx
COPY dockerfiles ./dockerfiles
ARG TIMESTAMP_SETTINGS=0
ARG TIMESTAMP_UWSGI=0
ARG VERSION_GITCOMMIT=unknown
RUN su searx -c "/usr/bin/python3 -m compileall -q searx"; \
RUN /usr/bin/python3 -m compileall -q searx; \
touch -c --date=@${TIMESTAMP_SETTINGS} searx/settings.yml; \
touch -c --date=@${TIMESTAMP_UWSGI} dockerfiles/uwsgi.ini; \
if [ ! -z $VERSION_GITCOMMIT ]; then\