aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-03-25 20:04:43 +0100
committerDaniel Schadt <kingdread@gmx.de>2023-03-25 20:04:43 +0100
commitb4fb50ebf2127aff85d30871fd4b13af1edd52c7 (patch)
tree0232df9ff22f3deaf6319c4a746fb3821c2f29bb /Dockerfile
parent897d53087a4c3c3338738cf6c297d4a551216e01 (diff)
downloadfietsboek-b4fb50ebf2127aff85d30871fd4b13af1edd52c7.tar.gz
fietsboek-b4fb50ebf2127aff85d30871fd4b13af1edd52c7.tar.bz2
fietsboek-b4fb50ebf2127aff85d30871fd4b13af1edd52c7.zip
add an initial Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..22e0717
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,17 @@
+FROM python:3.11
+RUN pip install gunicorn
+
+RUN mkdir /package
+WORKDIR /package/
+COPY ["fietsboek", "fietsboek"]
+COPY ["pyproject.toml", "README.md", "LICENSE.txt", "CHANGELOG.rst", "production.ini", "."]
+RUN pip install .
+
+COPY --chmod=755 ["container/entrypoint", "/bin/entrypoint"]
+COPY ["container/gunicorn.conf.py", "/fietsboek/gunicorn.conf.py"]
+
+VOLUME /fietsboek/data /fietsboek/database /fietsboek/pages
+WORKDIR /fietsboek
+
+ENTRYPOINT ["/bin/entrypoint"]
+CMD ["gunicorn", "--paste", "/fietsboek/fietsboek.ini"]