Don't hardcode commandline to deploystatic in docker image
authorMagnus Hagander <[email protected]>
Thu, 20 Feb 2025 20:27:21 +0000 (21:27 +0100)
committerMagnus Hagander <[email protected]>
Thu, 20 Feb 2025 20:27:21 +0000 (21:27 +0100)
tools/deploystatic/Dockerfile
tools/deploystatic/README.docker

index 9fc532612ff049269b286e1dd2951caf0e16d477..b732b98e6ee4993e47ec9ebe984203ab0f575394 100644 (file)
@@ -2,4 +2,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
+ENTRYPOINT ["/deploystatic.py"]
+CMD ["/source", "/target"]
\ No newline at end of file
index 0e2df5c05fcac91a5d36ce39ca3f3b6c8bccdcd9..3f81d06735f27711ba7a0e53777e41b284e4d73d 100644 (file)
@@ -11,3 +11,5 @@ 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)
+
+You can also just specify the default parameters as docker arguments.
\ No newline at end of file