Added partial config file for deployment image.

This commit is contained in:
s3lph 2018-07-16 19:53:26 +02:00
parent 3e289e4df8
commit d5a92287e0
2 changed files with 14 additions and 1 deletions

View file

@ -6,4 +6,4 @@ ADD . /
RUN pip3 install -r /requirements.txt RUN pip3 install -r /requirements.txt
EXPOSE 80/tcp EXPOSE 80/tcp
CMD [ "/usr/local/bin/python3", "-m", "matemat" ] CMD [ "/usr/local/bin/python3", "-m", "matemat", "/etc/matemat.conf", "/matemat.docker.conf" ]

13
matemat.docker.conf Normal file
View file

@ -0,0 +1,13 @@
[Matemat]
Address=::
Port=80
StaticPath=/static
TemplatePath=/templates
LogTarget=stdout
[Pagelets]
UploadDir=/static/upload
DatabaseFile=/var/matemat/db/test.db