Add stuff for docker + captain deployer

This commit is contained in:
Michal Kunc
2021-11-17 21:56:11 +01:00
parent 37cd6ddfda
commit 28f3d7e6cb
7 changed files with 166 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM python:3
RUN python3 -m pip install poetry
EXPOSE 5000
WORKDIR /app
COPY db_explorer/ /app/
RUN poetry update
RUN poetry run pip install setuptools
ENTRYPOINT [ "poetry", "run" ]
CMD [ "gunicorn", "-b=0.0.0.0:5000", "db_explorer:app" ]