summaryrefslogtreecommitdiff
path: root/Dockerfile
Commit message (Collapse)AuthorAge
* Docker: add UWSGI_WORKERS and UWSGI_THREAD environment variables (#2992)Alexandre Flament2023-11-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Bump Alpine 3.18 (Python 3.11)Nico Berlee2023-05-10
|
* SearXNG version: fix make dockerAlexandre Flament2023-01-20
| | | | | | | | | | 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
* Use fasttext-predict instead of fasttext or fasttext-wheelAlexandre Flament2022-12-26
| | | | See https://github.com/searxng/fasttext-predict
* [mod] improve 'Autodetect search language' pluginMarkus Heiser2022-12-11
| | | | | | | | | | | | | | | | | | | | | | - 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>
* Merge pull request #1990 from ngosang/feature/alpineMarkus Heiser2022-11-30
|\ | | | | Update base Docker image to Alpine 3.17
| * Update base Docker image to Alpine 3.17ngosang2022-11-29
| | | | | | | | | | * Python version is unchanged 3.10.8 * This issue is fixed https://github.com/searxng/searxng-docker/issues/31
* | fixngosang2022-11-29
| |
* | Reduce Docker image sizengosang2022-11-29
|/ | | | | | * 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)
* Remove unused volimeLinuxMeow2022-10-31
| | | | | 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.
* Dockerfile: use alpine 3.16Alexandre FLAMENT2022-06-27
|
* docker: log to stdoutAlexandre Flament2022-03-19
| | | | | | | | | | | 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
* [mod] Dockerfile: use binary from pypiAlexandre Flament2021-12-18
| | | | lxml doesn't raise any exception
* Dockerfile: use alpine 3.15Alexandre Flament2021-12-11
| | | Use Python 3.9.7-r4 (previously 3.9.5-r2)
* [fix] Dockerfile imageAlexandre Flament2021-11-05
| | | | | ignore existing wheels, rebuild all of them fix an issue the lxml wheel for the muslc
* SearXNG: dockerAlexandre Flament2021-10-12
|
* SearXNG: SEARXNG_SETTINGS_PATHAlexandre Flament2021-10-02
|
* SearXNG: .github, searxng-dockerAlexandre Flament2021-10-01
|
* version based on the git repositoryAlexandre Flament2021-07-30
| | | | | | | | 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...)
* Docker: upgrade to alpine 3.14Alexandre Flament2021-06-21
| | | Uses Python version 3.9 instead of 3.8
* [brand] Dockerfile default INSTANCE_NAME=searxngMarkus Heiser2021-05-17
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] Dockerfile: upgrade to Alpine 3.13Alexandre Flament2021-05-09
| | | | | | See: * https://alpinelinux.org/posts/Alpine-3.13.0-released.html * musl>=1.2.1 have a new malloc implementation (mallocng) :
* [docker] multiarch support: linux/amd64,linux/arm64,linux/arm/v7Alexandre Flament2021-04-28
| | | | | | | | 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)
* Allow overriding env vars SEARX_SETTINGS_PATH,UWSGI_SETTINGS_PATH3nprob2021-04-08
|
* Reduce redundant docker build steps3nprob2021-04-05
|
* [mod] Dockerfile: remove protobuff dependencyAlexandre Flament2021-03-25
| | | See https://github.com/searx/searx/pull/2481
* [enh] add checkerAlexandre Flament2021-01-12
|
* Merge pull request #1865 from dalf/uwsgi_staticAlexandre Flament2020-09-19
|\ | | | | [enh] Docker image: uwsgi serves the static files directly.
| * Merge branch 'master' into uwsgi_staticMarkus Heiser2020-04-29
| |\
| * | [enh] Docker image: uwsgi serves the static files directly.Dalf2020-02-25
| | | | | | | | | | | | | | | | | | 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)
* | | Dockerfile: upgrade base to alpine 3.12 (#1983)Wonderfall2020-07-11
| | | | | | | | | | | | Author: Wonderfall <wonderfall@targaryen.house>
* | | Remove cache of pip upgradeJason Kaltsikis2020-05-09
| |/ |/|
* | [fix] brands: add GIT_URL variable to the docker buildMarkus Heiser2020-03-25
|/ | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* :memo: Opencontainers labels in docker image #1772mathieu.brunot2019-12-17
| | | | Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
* Merge pull request #1680 from robbyoconnor/patch-1Adam Tauber2019-12-02
|\ | | | | Add --no-cache to tell apk to not cache packages
| * ..Robert O'Connor2019-08-18
| |
| * some other minor tweaks to move stuff very unlikely to change to the top in ↵Robert O'Connor2019-08-18
| | | | | | | | efforts to delay cache invalidation
| * add --no-cache to package installsRobby O'Connor2019-08-18
| | | | | | | | Add --no-cache to apk upgrade and apk add calls.
* | :whale: Config for instance name and autocompletemathieu.brunot2019-10-14
|/ | | | Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
* [fix] Dockerfile: searx version stores in org.label-schema.version (#1659)Alexandre Flament2019-08-01
| | | instead of org.label-schema.schema-version
* Update Docker imageDalf2019-07-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Define http proxy variables in Dockerfile before using thempelag0s2019-01-14
|
* docker: allow configuring http proxy via env variablespelag0s2019-01-12
|
* Update Dockerfile (#1451)ZEROF2018-11-29
| | | - Forget one "\" in the process!
* Update DockerfileZEROF2018-11-29
| | | - Fix for docker image build error "Could not find a version that satisfies the requirement cffi!=1.11.3,>=1.7 (from versions: )"
* Merge branch 'master' into patch-2Noémi Ványi2018-08-19
|\
| * Update Docker image to Alpine 3.8Angristan2018-08-19
| |
* | Merge branch 'master' into patch-2Adam Tauber2018-08-19
|\|
| * Update to Alpine 3.7Angristan2018-03-10
| | | | | | https://www.alpinelinux.org/posts/Alpine-3.7.0-released.html
* | Use new LABEL syntax for DockerfileAngristan2018-03-10
|/ | | https://docs.docker.com/engine/reference/builder/#maintainer-deprecated