Add fastapi on the awesome-compose project

Signed-off-by: vjanz <valon.januzaj98@gmail.com>
This commit is contained in:
vjanz
2021-04-14 21:40:07 +02:00
parent e07a341493
commit 33960f9678
6 changed files with 89 additions and 0 deletions

12
fastapi/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM python:3.8
WORKDIR /app
RUN apt update
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "--host", "0.0.0.0", "--port", "8000", "src.app:app"]