aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
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..262cfac
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,17 @@
+FROM python:3.11
+RUN pip install gunicorn psycopg2-binary mysqlclient
+
+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"]