Fastapi base Dockerfile

Signed-off-by: vjanz <valon.januzaj98@gmail.com>
This commit is contained in:
vjanz 2021-10-10 22:45:49 +02:00
parent 263ba37b97
commit 3b3e7e7da6
2 changed files with 11 additions and 0 deletions

11
fastapi/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9-slim
WORKDIR /app
RUN apt update
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY ./app ./app

0
fastapi/app/__init__.py Normal file
View File