2025-02-08 01:35:40 +08:00
|
|
|
FROM docker.io/searxng/searxng:latest
|
2025-02-01 01:08:40 +08:00
|
|
|
|
2025-02-08 01:35:40 +08:00
|
|
|
# Modify file to enable hostname plugin
|
|
|
|
RUN sed -E -i -e 's/default_on = False/default_on = True/' /usr/local/searxng/searx/plugins/hostnames.py
|
2024-05-20 18:14:19 +08:00
|
|
|
|
2024-05-25 06:59:42 +08:00
|
|
|
# copy custom simple theme css and limiter.toml from the PaulGo fork
|
|
|
|
COPY --from=docker.io/paulgoio/searxng:production /etc/searxng/limiter.toml /etc/searxng/limiter.toml
|
2024-05-20 18:14:19 +08:00
|
|
|
COPY --from=docker.io/paulgoio/searxng:production /usr/local/searxng/searx/static/themes/ /usr/local/searxng/searx/static/themes/
|
2024-05-25 06:59:42 +08:00
|
|
|
|
2024-06-06 23:58:01 +08:00
|
|
|
# Compile into .pyc files. (Static files are already precompiled in the source images)
|
2024-05-25 06:59:42 +08:00
|
|
|
WORKDIR /usr/local/searxng
|
|
|
|
RUN su searxng -c "/usr/bin/python3 -m compileall -q searx";
|