diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 17 |
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"] |