diff --git a/tools/deploystatic/Dockerfile b/tools/deploystatic/Dockerfile new file mode 100644 index 00000000..9fc53261 --- /dev/null +++ b/tools/deploystatic/Dockerfile @@ -0,0 +1,5 @@ +FROM debian:bullseye +RUN apt-get -y update && apt-get -y upgrade && apt-get -y install python3-jinja2 python3-markdown python3-dateutil && apt-get -y clean +RUN mkdir /source /target +ADD deploystatic.py / +ENTRYPOINT /deploystatic.py /source /target diff --git a/tools/deploystatic/README.docker b/tools/deploystatic/README.docker new file mode 100644 index 00000000..0e2df5c0 --- /dev/null +++ b/tools/deploystatic/README.docker @@ -0,0 +1,13 @@ +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 . + + +And then to use it: + +docker run -it --rm -v `pwd`:/source -v /tmp/statictest:/target deploystatic + +(In this case taking the templates in the current directory and deploying the +result to /tmp/statictest - adjust for your own directories)