From dc2beaf89cb8a9d660175bcf7933957b129869cf Mon Sep 17 00:00:00 2001 From: j4n Date: Mon, 23 Feb 2026 19:48:32 +0100 Subject: [PATCH] docker/doc: explain build.sh --- doc/source/docker.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/source/docker.rst b/doc/source/docker.rst index 02c3acdd..c1bd05d9 100644 --- a/doc/source/docker.rst +++ b/doc/source/docker.rst @@ -237,11 +237,13 @@ Clone the repository and build the Docker image:: git clone https://github.com/chatmail/relay cd relay - docker compose build chatmail + docker/build.sh The build bakes all binaries, Python packages, and the install stage -into the image. After building, only ``docker-compose.yaml`` and a ``.env`` with -``MAIL_DOMAIN`` are needed to run the container. +into the image. After building, only ``docker-compose.yaml`` and a ``.env`` +with ``MAIL_DOMAIN`` are needed to run the container. The `build.sh` passes the +git hash onto the docker build so it can be determined if there has been a +change that warrants a redeploy. You can transfer a locally built image to your server directly (pigz is parallel `gzip` which can be used instead as well) ::