Add docker support
This commit is contained in:
+12
@@ -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
|
||||
Reference in New Issue
Block a user