2ENTRYPOINT ["/sbin/tini","--","/usr/local/searx/dockerfiles/docker-entrypoint.sh"]
10RUN addgroup -g ${SEARX_GID} searx && \
11 adduser -u ${SEARX_UID} -D -h /usr/local/searx -s /bin/sh -G searx searx
13ENV INSTANCE_NAME=searx \
18 SEARX_SETTINGS_PATH=/etc/searx/settings.yml \
19 UWSGI_SETTINGS_PATH=/etc/searx/uwsgi.ini
21WORKDIR /usr/local/searx
24COPY requirements.txt ./requirements.txt
26RUN apk upgrade --no-cache \
27 && apk add --no-cache -t build-dependencies \
37 && apk add --no-cache \
49 && pip3 install --upgrade pip wheel setuptools \
50 && pip3 install --no-cache -r requirements.txt \
51 && apk del build-dependencies \
52 && rm -rf /root/.cache
54COPY --chown=searx:searx . .
56ARG TIMESTAMP_SETTINGS=0
58ARG VERSION_GITCOMMIT=unknown
60RUN su searx -c "/usr/bin/python3 -m compileall -q searx"; \
61 touch -c --date=@${TIMESTAMP_SETTINGS} searx/settings.yml; \
62 touch -c --date=@${TIMESTAMP_UWSGI} dockerfiles/uwsgi.ini; \
63 if [ ! -z $VERSION_GITCOMMIT ]; then\
64 echo "VERSION_STRING = VERSION_STRING + \"-$VERSION_GITCOMMIT\"" >> /usr/local/searx/searx/version.py; \
66 find /usr/local/searx/searx/static -a \( -name '*.html' -o -name '*.css' -o -name '*.js' \
67 -o -name '*.svg' -o -name '*.ttf' -o -name '*.eot' \) \
68 -type f -exec gzip -9 -k {} \+ -exec brotli --best {} \+
70# Keep these arguments at the end to prevent redundant layer rebuilds
73ARG SEARX_GIT_VERSION=unknown
76LABEL maintainer="searx <${GIT_URL}>" \
77 description="A privacy-respecting, hackable metasearch engine." \
78 version="${SEARX_GIT_VERSION}" \
79 org.label-schema.schema-version="1.0" \
80 org.label-schema.name="searx" \
81 org.label-schema.version="${SEARX_GIT_VERSION}" \
82 org.label-schema.url="${LABEL_VCS_URL}" \
83 org.label-schema.vcs-ref=${LABEL_VCS_REF} \
84 org.label-schema.vcs-url=${LABEL_VCS_URL} \
85 org.label-schema.build-date="${LABEL_DATE}" \
86 org.label-schema.usage="https://github.com/searx/searx-docker" \
87 org.opencontainers.image.title="searx" \
88 org.opencontainers.image.version="${SEARX_GIT_VERSION}" \
89 org.opencontainers.image.url="${LABEL_VCS_URL}" \
90 org.opencontainers.image.revision=${LABEL_VCS_REF} \
91 org.opencontainers.image.source=${LABEL_VCS_URL} \
92 org.opencontainers.image.created="${LABEL_DATE}" \
93 org.opencontainers.image.documentation="https://github.com/searx/searx-docker"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list