add minimal docker files for backend and database

This commit is contained in:
Andreas Koepf
2022-12-13 18:44:29 +01:00
parent 4774534262
commit 837452af25
3 changed files with 23 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY ./app /code/app
COPY ./app /app
ENV PYTHONPATH=/app
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]