Spaces:
Sleeping
Sleeping
Download src/Dockerfile from rasmodev/Sepsis_Prediction_FastAPI: direct link, hf CLI and curl.
- Browser
- Download file 564 Bytes
-
https://huggingface.co/spaces/rasmodev/Sepsis_Prediction_FastAPI/resolve/9b95b1e2b538293c27fa081561b68601fc4d9f29/src/Dockerfile
- Command line
-
hf download hf://spaces/rasmodev/Sepsis_Prediction_FastAPI@9b95b1e2b538293c27fa081561b68601fc4d9f29/src/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rasmodev/Sepsis_Prediction_FastAPI/resolve/9b95b1e2b538293c27fa081561b68601fc4d9f29/src/Dockerfile
564 Bytes
| # Use the official Python image as a parent image | |
| FROM python:3.11.3-slim | |
| # Set the working directory within the container | |
| WORKDIR /app | |
| # Copy your FastAPI application code into the container | |
| COPY src/app.py /app | |
| # Copy the requirements.txt file into the container | |
| COPY requirements.txt /app | |
| # Install the Python dependencies | |
| RUN pip install -r /app/requirements.txt | |
| # Expose port 8000 for the FastAPI application | |
| EXPOSE 8000 | |
| # Define the command to run your FastAPI application | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] | |