summaryrefslogtreecommitdiff
path: root/Dockerfile
AgeCommit message (Collapse)Author
2024-10-07Revert "[fix] docker: alpine - install apk py3-pydantic-core"Markus Heiser
This reverts commit 5332d3a0b8f94a7a984d22cbcfa1fb9c34cb3ff9.
2024-10-06[fix] docker: alpine - install apk py3-pydantic-coreMarkus Heiser
Alpine Linux uses musl libc (instead of glibc). However, there is no pre-build of the pydantic-core python package for musl lib on armv7. Alternatively this patch installs py3-pydantic-core from Alpine packages [1] [1] https://pkgs.alpinelinux.org/package/edge/community/armv7/py3-pydantic-core - closes: https://github.com/searxng/searxng/issues/3887 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-07-27[fix] everything is logged with "priority 3" on journalIvan Gabaldon
Closes: https://github.com/searxng/searxng/issues/3649
2024-07-14Dockerfile: use Alpine 3.20 & Python 3.12Alexandre Flament
2024-03-04Docker: use Alpine 3.19Alexandre Flament
2023-11-12Docker: add UWSGI_WORKERS and UWSGI_THREAD environment variables (#2992)Alexandre Flament
* Docker: add UWSGI_WORKERS and UWSGI_THREAD. UWSGI_WORKERS specifies the number of process. UWSGI_THREADS specifies the number of threads. The Docker convention is to specify the whole configuration through environment variables. While not done in SearXNG, these two additional variables allows admins to skip uwsgi.ini In additional, https://github.com/searxng/preview-environments starts Docker without additional files through searxng-helm-chat. Each instance consumes 1Go of RAM which is a lot especially when there are a lot of instances / pull requests. * [scripts] add environments UWSGI_WORKERS and UWSGI_THREADS - UWSGI_WORKERS specifies the number of process. - UWSGI_THREADS specifies the number of threads. Templates for uwsgi scripts can be tested by:: UWSGI_WORKERS=8 UWSGI_THREADS=9 \ ./utils/searxng.sh --cmd\ eval "echo \"$(cat utils/templates/etc/uwsgi/*/searxng.ini*)\""\ | grep "workers\|threads" Signed-off-by: Markus Heiser <markus.heiser@darmarit.de> --------- Signed-off-by: Markus Heiser <markus.heiser@darmarit.de> Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
2023-05-10Bump Alpine 3.18 (Python 3.11)Nico Berlee
2023-01-20SearXNG version: fix make dockerAlexandre Flament
continuation of #2117 related to #2111 This commit: * fixes the Docker tag using an additional variable DOCKER_TAG, see searx/version.py * fixes the Docker labels org.label-schema.vcs-ref and org.opencontainers.image.revision * adds searx/version_frozen to .gitignore
2022-12-26Use fasttext-predict instead of fasttext or fasttext-wheelAlexandre Flament
See https://github.com/searxng/fasttext-predict
2022-12-11[mod] improve 'Autodetect search language' pluginMarkus Heiser
- Add documentation to the plugin - Harmonize FastText language model with SearXNG's language model Reosurces:: import fasttext # --> +10 MB fasttext.load_model(str(data_dir / 'lid.176.ftz')) # --> +4MB Suggested-by: @dalf - To speed up and simplify the deployment use fasttext-wheel instead of fasttext - Building numpy on the Alpine Linux of docker-images takes ages --> install py3-numpy from Alpines package manager (apk) - Alpine Linux on docker-images (musl libc) do not support fasttext-wheel (gnu libc) --> patch Dockerfile and build from fastetxt: sed -i s/fasttext-wheel/fasttext/ requirements.txt Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-11-30Merge pull request #1990 from ngosang/feature/alpineMarkus Heiser
Update base Docker image to Alpine 3.17
2022-11-29Update base Docker image to Alpine 3.17ngosang
* Python version is unchanged 3.10.8 * This issue is fixed https://github.com/searxng/searxng-docker/issues/31
2022-11-29fixngosang
2022-11-29Reduce Docker image sizengosang
* Remove compiled sources. Most of them are never used. Those in use are compiled in the first run really fast. * Copy only source code and Docker entypoint * Image size reduced by 41 MB (195 MB -> 154 MB uncompressed)
2022-10-31Remove unused volimeLinuxMeow
Docker file used old project volume instruction which is not existent in current one. It used to create clutter in created volumes without names and purposes polluting the docker environment. Volume doesn't point to existing directory inside container and has no actual use other then creating docker volume mess each time container is run recreated or potentially restarted.
2022-06-27Dockerfile: use alpine 3.16Alexandre FLAMENT
2022-03-19docker: log to stdoutAlexandre Flament
previously the log (only the exceptions) were log into /var/log/uwsgi/uwsgi.log this is disturbing for the admins: * they see an internal error on HTTP port * no log where they are expected (docker logs) this commit fixes this issue
2021-12-18[mod] Dockerfile: use binary from pypiAlexandre Flament
lxml doesn't raise any exception
2021-12-11Dockerfile: use alpine 3.15Alexandre Flament
Use Python 3.9.7-r4 (previously 3.9.5-r2)
2021-11-05[fix] Dockerfile imageAlexandre Flament
ignore existing wheels, rebuild all of them fix an issue the lxml wheel for the muslc
2021-10-12SearXNG: dockerAlexandre Flament
2021-10-02SearXNG: SEARXNG_SETTINGS_PATHAlexandre Flament
2021-10-01SearXNG: .github, searxng-dockerAlexandre Flament
2021-07-30version based on the git repositoryAlexandre Flament
This commit remove the need to update the brand for GIT_URL and GIT_BRANCH: there are read from the git repository. It is possible to call python -m searx.version freeze to freeze the current version. Useful when the code is installed outside git (distro package, docker, etc...)
2021-06-21Docker: upgrade to alpine 3.14Alexandre Flament
Uses Python version 3.9 instead of 3.8
2021-05-17[brand] Dockerfile default INSTANCE_NAME=searxngMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-05-09[mod] Dockerfile: upgrade to Alpine 3.13Alexandre Flament
See: * https://alpinelinux.org/posts/Alpine-3.13.0-released.html * musl>=1.2.1 have a new malloc implementation (mallocng) :
2021-04-28[docker] multiarch support: linux/amd64,linux/arm64,linux/arm/v7Alexandre Flament
make docker.buildx : build and push multiarch build. (it can't be only build) use buildx with the --cache-from and --cache-to options to cache the layers (only the last built is cached)
2021-04-08Allow overriding env vars SEARX_SETTINGS_PATH,UWSGI_SETTINGS_PATH3nprob
2021-04-05Reduce redundant docker build steps3nprob
2021-03-25[mod] Dockerfile: remove protobuff dependencyAlexandre Flament
See https://github.com/searx/searx/pull/2481
2021-01-12[enh] add checkerAlexandre Flament
2020-09-19Merge pull request #1865 from dalf/uwsgi_staticAlexandre Flament
[enh] Docker image: uwsgi serves the static files directly.
2020-07-11Dockerfile: upgrade base to alpine 3.12 (#1983)Wonderfall
Author: Wonderfall <wonderfall@targaryen.house>
2020-05-09Remove cache of pip upgradeJason Kaltsikis
2020-04-29Merge branch 'master' into uwsgi_staticMarkus Heiser
2020-03-25[fix] brands: add GIT_URL variable to the docker buildMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-02-25[enh] Docker image: uwsgi serves the static files directly.Dalf
When the image is built, the static files are compressed with gzip and brotli. The expires header is set to one day (same as Flask) There is not etag header (Flask does add an etag header)
2019-12-17:memo: Opencontainers labels in docker image #1772mathieu.brunot
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2019-12-02Merge pull request #1680 from robbyoconnor/patch-1Adam Tauber
Add --no-cache to tell apk to not cache packages
2019-10-14:whale: Config for instance name and autocompletemathieu.brunot
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2019-08-18..Robert O'Connor
2019-08-18some other minor tweaks to move stuff very unlikely to change to the top in ↵Robert O'Connor
efforts to delay cache invalidation
2019-08-18add --no-cache to package installsRobby O'Connor
Add --no-cache to apk upgrade and apk add calls.
2019-08-01[fix] Dockerfile: searx version stores in org.label-schema.version (#1659)Alexandre Flament
instead of org.label-schema.schema-version
2019-07-13Update Docker imageDalf
See #1561 , use uwsgi and Alpine Linux Volume: /var/log/uwsgi contains error log for 2 days (file uwsgi.log) /etc/searx contains the settings.yml and uwsgi.ini files. The docker image creates them if they don't exist. The two files can be modified after the first run. See below. Environement variables: MORTY_URL : external URL of Morty MORTY_KEY : base64 encoded key BASE_URL : external URL of Searx BIND_ADDRESS : internal HTTP port to listen to Labels : org.label-schema.schema.* Parameters: -h : display this help -d : will update the settings and quit immediately (settings.yml and uwsgi.ini) -f : always update the settings (previous version saved with suffix .old). without this parameter, the new settings are copied with suffix .new When the Docker image contains newer settings: - without -f parameter: the new versions are copied to /etc/searx/settings.yml.new and /etc/searx/uwsgi.ini.new. - with -f parameter: the old versions are renamed with .old suffix. The new version replaces /etc/searx/settings.yml and /etc/searx/uwsgi.ini Build using "./manage.sh docker_build", add "push" as parameter also push the Docker image. The script requires a git repository to work (it makes sure that the last git tag matches searx/version.py) "git describe" is used to create a meaningful version. Example : 0.15.0-90-49c5bcb4-dirty (dirty means that the docker image was made with uncommited changes). Use "docker inspect -f {{.Config.Labels.version}} searx" to get the version of an existing image. .dockerignore based on .gitignore .travis.yml: include docker stage
2019-01-14Define http proxy variables in Dockerfile before using thempelag0s
2019-01-12docker: allow configuring http proxy via env variablespelag0s
2018-11-29Update Dockerfile (#1451)ZEROF
- Forget one "\" in the process!
2018-11-29Update DockerfileZEROF
- Fix for docker image build error "Could not find a version that satisfies the requirement cffi!=1.11.3,>=1.7 (from versions: )"