From a3dda718e0184e5fcea78187b79074c464c459f0 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Sun, 1 Aug 2021 13:04:10 +1200 Subject: [PATCH] Switch to fastapi --- Dockerfile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index f816da2..159e1ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,6 @@ -FROM python:slim +FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7 +ENV DOCKER=1 - -RUN apt-get update && apt-get install -y git zip && pip install aiohttp b2sdk pytest && mkdir /files - -RUN mkdir /root/.ssh - -COPY src /src - -CMD [ "python", "/src/main.py"] \ No newline at end of file +RUN apt-get update && apt-get install -y git zip && mkdir /files +RUN pip install fastapi-responses b2sdk pytest +COPY ./app /app/app \ No newline at end of file