awesome-compose/fastapi/Dockerfile
vjanz 33960f9678 Add fastapi on the awesome-compose project
Signed-off-by: vjanz <valon.januzaj98@gmail.com>
2021-10-09 21:34:25 +02:00

12 lines
203 B
Docker

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"]