From 1040fa7f6f7b0b8fe36b1f982cc2268fbdfde909 Mon Sep 17 00:00:00 2001 From: Opnxng Date: Sat, 25 May 2024 06:59:42 +0800 Subject: [PATCH] Switched to Valkey as Redis database --- README.md | 1 + dockerfiles/searxng.Dockerfile | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7413bc0..ced5d27 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ Source | Image [Xyphyn/photon](https://github.com/Xyphyn/photon) | Xyphyn/photon [Ahwxorg/Binternet](https://github.com/Ahwxorg/binternet/) | ahwxorg/binternet [gothub/gothub](https://codeberg.org/gothub/gothub) | gothub/gothub +[valkey-io/valkey-container](https://github.com/valkey-io/valkey-container) | valkey/valkey [go-gitea/gitea](https://github.com/go-gitea/gitea) | gitea/gitea (with [Rainnny7/gitea-github-theme](https://github.com/Rainnny7/gitea-github-theme)) [gitea/act_runner](https://gitea.com/gitea/act_runner) | gitea/act_runner [binwiederhier/ntfy](https://github.com/binwiederhier/ntfy) | binwiederhier/ntfy diff --git a/dockerfiles/searxng.Dockerfile b/dockerfiles/searxng.Dockerfile index 6f5958e..9833389 100644 --- a/dockerfiles/searxng.Dockerfile +++ b/dockerfiles/searxng.Dockerfile @@ -1,4 +1,9 @@ FROM docker.io/searxng/searxng:latest -# copy custom simple theme css from the PaulGo fork +# 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 COPY --from=docker.io/paulgoio/searxng:production /usr/local/searxng/searx/static/themes/ /usr/local/searxng/searx/static/themes/ + +# Compile into .pyc. (Static files are already precompiled in the source images) +WORKDIR /usr/local/searxng +RUN su searxng -c "/usr/bin/python3 -m compileall -q searx";