[mod] container: refactor entrypoint script

That entrypoint is prone to screw things up, especially with permission handling. The new script handles initialization better and fixes some issues like delayed settings update via ENVs and timestamp overwriting, also adjusts what should be copied into the container.

Related https://github.com/searxng/searxng/pull/4721#issuecomment-2850272129
This commit is contained in:
Ivan Gabaldon 2025-05-16 11:16:41 +02:00
parent a195f52412
commit 749de829d5
8 changed files with 185 additions and 141 deletions

View file

@ -181,10 +181,10 @@ Command line
<https://docs.docker.com/engine/reference/run/#foreground>`__.
In the :origin:`Dockerfile` the ENTRYPOINT_ is defined as
:origin:`container/docker-entrypoint.sh`
:origin:`container/entrypoint.sh`
.. code:: sh
docker run --rm -it searxng/searxng -h
.. program-output:: ../container/docker-entrypoint.sh -h
.. program-output:: ../container/entrypoint.sh -h