From 8456654e5680dc19bae604736622e4a1b48e7c6f Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sun, 14 Sep 2025 14:14:19 +0200 Subject: [PATCH] Document the fact that we publish the deploystatic container on ghcr --- tools/deploystatic/README.docker | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/deploystatic/README.docker b/tools/deploystatic/README.docker index ed6ecc23..460a5487 100644 --- a/tools/deploystatic/README.docker +++ b/tools/deploystatic/README.docker @@ -1,10 +1,19 @@ +Building/Pulling +---------------- If you have trouble with the dependencies, the Dockerfile in this directory will build a simple container that you can use. For example: docker build -t deploystatic . +The container is also available to pull with: +docker pull ghcr.io/pgeu/deploystatic + +And in this case, in the examples below replace the containername with ghcr.io/pgeu/deploystatic. + +Deploying a directory +--------------------- To use this container to deploy to a static directory, use: docker run -it --rm -v `pwd`:/source -v /tmp/statictest:/target deploystatic @@ -15,6 +24,8 @@ result to /tmp/statictest - adjust for your own directories) You can also just specify the default parameters as docker arguments. +Previewing a directory +---------------------- You can also use the docker container to run a simple static webserver with the output of the static directory like this: -- 2.39.5