Compare commits

...

2 commits

Author SHA1 Message Date
Rafael Caricio 2edb8d8e15
Predictable memory usage
Signed-off-by: Rafael Caricio <rafael@caricio.com>
2022-07-08 19:04:48 +02:00
Rafael Caricio 15d4435d80
Updated dockerfile with metadata
Signed-off-by: Rafael Caricio <rafael@caricio.com>
2022-07-08 18:40:49 +02:00
3 changed files with 5 additions and 0 deletions

View file

@ -6,6 +6,7 @@
"changelog": "file://CHANGELOG",
"tagline": "Privacy-respecting metasearch engine",
"version": "1.0.0",
"memoryLimit": 589719142400,
"healthCheckPath": "/",
"httpPort": 8888,
"addons": {

View file

@ -29,6 +29,9 @@ ENV INSTANCE_NAME=searxng \
RUN mv /app/code/searx/settings.yml /app/code/searx/settings.yml.orig && \
ln -sf /app/data/settings.yml /app/code/searx/settings.yml
RUN echo "VERSION_STRING=\"m${VERSION}\";VERSION_TAG=\"m${VERSION}\";GIT_URL=\"https://git.caric.io/mirrors/searxng\";GIT_BRANCH=\"m${VERSION}\"" \
> /app/code/searx/version_frozen.py
RUN chown -R www-data.www-data /app/code
# Fix python UnicodeDecodeError

View file

@ -10,6 +10,7 @@ if [[ ! -f /app/data/uwsgi.ini ]]; then
-e "s/chdir = .*/chdir = \/app\/code\/searx/g" \
-e "s/uid = .*/uid = www-data/g" \
-e "s/gid = .*/gid = www-data/g" \
-e "s/workers = .*/workers = 4/g" \
-e "s/static-map = \/static=.*/static-map = \/static=\/app\/code\/searx\/static/g" \
-i /app/data/uwsgi.ini
fi