Commit graph

84 commits

Author SHA1 Message Date
Joseph Cheung
0c43725483 Update Dockerfile 2023-03-01 00:50:48 +08:00
Joseph Cheung
dd1a9c0a3c p 2023-03-01 00:47:58 +08:00
Joseph Cheung
49bae7721a Update Dockerfile 2023-03-01 00:37:17 +08:00
Joseph Cheung
a1adf4df86 p 2023-03-01 00:35:32 +08:00
Joseph Cheung
99c077cd5e Update Dockerfile 2023-03-01 00:28:23 +08:00
Joseph Cheung
385b974c76 c 2023-03-01 00:26:51 +08:00
Joseph Cheung
f60e82fcb8 c 2023-03-01 00:24:13 +08:00
Joseph Cheung
22d05eaeed Update Dockerfile 2023-02-28 23:53:17 +08:00
Joseph Cheung
e456de3476 Update Dockerfile 2023-02-28 23:25:01 +08:00
Joseph Cheung
edcc0abbfd Update Dockerfile 2023-02-28 23:11:01 +08:00
Joseph Cheung
c8a8c63ea0 Update Dockerfile 2023-02-28 23:06:23 +08:00
Joseph Cheung
ad8f39ee70 d 2023-02-28 23:03:20 +08:00
Joseph Cheung
91336c73c2 o 2023-02-28 22:55:11 +08:00
Joseph Cheung
0608814a37 c 2023-02-28 22:35:57 +08:00
Joseph Cheung
61f9fba64a c 2023-02-28 22:21:39 +08:00
Joseph Cheung
b6c78c731d Update Dockerfile 2023-02-28 22:08:05 +08:00
Joseph Cheung
37fe056ccd o 2023-02-28 21:54:17 +08:00
Joseph Cheung
e5011c0cab p 2023-02-28 20:45:51 +08:00
Joseph Cheung
a8c847ebe6 d 2023-02-28 20:33:54 +08:00
Joseph Cheung
8ae80a3b73 o 2023-02-23 17:02:57 +08:00
Joseph Cheung
b8557e9f99 o 2023-02-23 16:04:09 +08:00
Joseph Cheung
6e9b668c74 Update Dockerfile 2023-02-23 15:46:26 +08:00
Joseph Cheung
56e95b78f5 o 2023-02-19 20:07:45 +08:00
Alexandre Flament
f759a84af4 SearXNG version: fix make docker
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
2023-01-20 10:46:00 +00:00
Alexandre Flament
ec4237586d Use fasttext-predict instead of fasttext or fasttext-wheel
See https://github.com/searxng/fasttext-predict
2022-12-26 18:44:21 +00:00
Markus Heiser
ed901ab18e [mod] improve 'Autodetect search language' plugin
- 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-12-11 11:26:07 +01:00
Markus Heiser
44d4a1714c
Merge pull request #1990 from ngosang/feature/alpine
Update base Docker image to Alpine 3.17
2022-11-30 10:32:34 +01:00
ngosang
ba61457220 Update base Docker image to Alpine 3.17
* Python version is unchanged 3.10.8
* This issue is fixed https://github.com/searxng/searxng-docker/issues/31
2022-11-29 23:45:10 +01:00
ngosang
6b88e857f9 fix 2022-11-29 23:31:49 +01:00
ngosang
9417c284d3 Reduce Docker image size
* 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-11-29 22:32:28 +01:00
LinuxMeow
67455274b6
Remove unused volime
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-10-31 19:19:20 +01:00
Alexandre FLAMENT
95603e54e1 Dockerfile: use alpine 3.16 2022-06-27 17:44:30 +00:00
Alexandre Flament
12d3fe3214 docker: log to stdout
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
2022-03-19 13:47:45 +01:00
Alexandre Flament
4bd78a7ef0 [mod] Dockerfile: use binary from pypi
lxml doesn't raise any exception
2021-12-18 14:07:29 +01:00
Alexandre Flament
f9c9284f48
Dockerfile: use alpine 3.15
Use Python 3.9.7-r4 (previously 3.9.5-r2)
2021-12-11 17:06:23 +01:00
Alexandre Flament
dc39f9c960 [fix] Dockerfile image
ignore existing wheels, rebuild all of them
fix an issue the lxml wheel for the muslc
2021-11-05 20:05:26 +01:00
Alexandre Flament
9e03823b98 SearXNG: docker 2021-10-12 20:23:57 +02:00
Alexandre Flament
253b850376 SearXNG: SEARXNG_SETTINGS_PATH 2021-10-02 17:18:05 +02:00
Alexandre Flament
499c7b3cce SearXNG: .github, searxng-docker 2021-10-01 09:48:53 +02:00
Alexandre Flament
4b43775c91 version based on the git repository
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-07-30 14:40:09 +02:00
Alexandre Flament
ef12c41206
Docker: upgrade to alpine 3.14
Uses Python version 3.9 instead of 3.8
2021-06-21 18:03:54 +02:00
Markus Heiser
130e58f982 [brand] Dockerfile default INSTANCE_NAME=searxng
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-05-17 12:02:24 +02:00
Alexandre Flament
8c5cb5039e [mod] Dockerfile: upgrade to Alpine 3.13
See:
* https://alpinelinux.org/posts/Alpine-3.13.0-released.html
* musl>=1.2.1 have a new malloc implementation (mallocng) :
2021-05-09 11:06:07 +02:00
Alexandre Flament
20580bcbd4 [docker] multiarch support: linux/amd64,linux/arm64,linux/arm/v7
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-28 14:40:00 +02:00
3nprob
0fb423ea59 Allow overriding env vars SEARX_SETTINGS_PATH,UWSGI_SETTINGS_PATH 2021-04-08 12:56:15 +09:00
3nprob
3c6c827330 Reduce redundant docker build steps 2021-04-05 15:51:34 +09:00
Alexandre Flament
ae0b621ec8
[mod] Dockerfile: remove protobuff dependency
See https://github.com/searx/searx/pull/2481
2021-03-25 17:09:28 +01:00
Alexandre Flament
8cbc9f2d58 [enh] add checker 2021-01-12 11:47:17 +01:00
Alexandre Flament
4cc8644ec9
Merge pull request #1865 from dalf/uwsgi_static
[enh] Docker image: uwsgi serves the static files directly.
2020-09-19 16:04:07 +02:00
Wonderfall
7b19e6c5f4
Dockerfile: upgrade base to alpine 3.12 (#1983)
Author: Wonderfall <wonderfall@targaryen.house>
2020-07-11 12:07:51 +02:00