Add fastapi on the awesome-compose project
Signed-off-by: vjanz <valon.januzaj98@gmail.com>
This commit is contained in:
12
fastapi/Dockerfile
Normal file
12
fastapi/Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user