Spaces:
Sleeping
Sleeping
Download Dockerfile from rasmodev/Sepsis_Prediction_FastAPI: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/spaces/rasmodev/Sepsis_Prediction_FastAPI/resolve/30bed66af9b14d282f6eb2dae0f48a5a7553ccca/Dockerfile
- Command line
-
hf download hf://spaces/rasmodev/Sepsis_Prediction_FastAPI@30bed66af9b14d282f6eb2dae0f48a5a7553ccca/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rasmodev/Sepsis_Prediction_FastAPI/resolve/30bed66af9b14d282f6eb2dae0f48a5a7553ccca/Dockerfile
555 Bytes
| # Use the official Python image as a parent image | |
| FROM python:3.9-slim | |
| # Set the working directory within the container | |
| WORKDIR /app | |
| # Copy the requirements.txt file into the container | |
| COPY ./requirements.txt /app/requirements.txt | |
| # Install the Python dependencies | |
| RUN pip install -r /app/requirements.txt | |
| # Copy all other relevant files into the work directory | |
| COPY . . | |
| # 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"] | |