Change the docker image to tiangolo/uvicorn-gunicorn-fastapi

Signed-off-by: Valon Januzaj <valon.januzaj98@gmail.com>
Signed-off-by: vjanz <valon.januzaj98@gmail.com>
This commit is contained in:
Valon Januzaj
2021-07-22 11:39:40 +02:00
committed by vjanz
parent 33960f9678
commit 6d6dff8393
5 changed files with 19 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
FROM python:3.8
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8
WORKDIR /app
@@ -7,6 +7,5 @@ RUN apt update
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
COPY ./app ./app
CMD ["uvicorn", "--host", "0.0.0.0", "--port", "8000", "src.app:app"]