Download Dockerfile from Adoley/Sepsis-Prediction-Using-FastAPI: direct link, hf CLI and curl.
- Browser
- Download file 481 Bytes
-
https://huggingface.co/spaces/Adoley/Sepsis-Prediction-Using-FastAPI/resolve/615c4e26cdd36b9ab7674049d2cb48b8fb4e4003/Dockerfile
- Command line
-
hf download hf://spaces/Adoley/Sepsis-Prediction-Using-FastAPI@615c4e26cdd36b9ab7674049d2cb48b8fb4e4003/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Adoley/Sepsis-Prediction-Using-FastAPI/resolve/615c4e26cdd36b9ab7674049d2cb48b8fb4e4003/Dockerfile
481 Bytes
| # Use the official Python image as the base image | |
| FROM python:3.9 | |
| # Set the working directory in the container | |
| WORKDIR /code | |
| # Copy requirements.txt file | |
| COPY requirements.txt . | |
| # Install the Python dependencies | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # copy all the files in the app folder | |
| COPY theApp/ . | |
| EXPOSE 7860 | |
| # Start the FastAPI app with Uvicorn when the container starts | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |