Spaces:
Runtime error
Runtime error
File size: 459 Bytes
10b1799 d17a602 10b1799 451a436 10b1799 451a436 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
#specifing the docker image
FROM python:3.9-slim
#setting working directory where my app code is in.
WORKDIR /main
#copying requirements file from project woekdir to docker dir
COPY requirements.txt .
RUN pip install -r requirements.txt
#copying the entire project code to the container
COPY main.py .
#specfying the port that my fastapi is in
EXPOSE 8000
# Run the FastAPI application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] |