Add docker support

This commit is contained in:
2020-01-20 21:46:11 +03:00
parent 7babd3f50b
commit f8b2c80634
3 changed files with 32 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM python:3.7-slim
WORKDIR /app
COPY ./install.sh ./requirements.txt ./
RUN bash install.sh
COPY ./app.sqlite3 .
COPY ./app ./app
COPY ./core ./core
ENTRYPOINT ["uvicorn", "--host", "0.0.0.0", "--port", "8000", "app.app:app"]
EXPOSE 8000
ENV PYTHONUNBUFFERED=1