Skip to content

Commit

Permalink
Add a dockerfile for deploystatic
Browse files Browse the repository at this point in the history
Since some platforms makes it hard to get the same version of jinja2
(and presumably other things) as we need, create a small Dockerfile
with an example based off the Debian version that we know work.
  • Loading branch information
mhagander committed Oct 18, 2024
1 parent 0c8d1d1 commit 9a7473b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/deploystatic/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions tools/deploystatic/README.docker
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 9a7473b

Please sign in to comment.