-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |