Spaces:
Runtime error
Runtime error
Download Dockerfile from slickdata/sepsis-app-fastapi: direct link, hf CLI and curl.
- Browser
- Download file 544 Bytes
-
https://huggingface.co/spaces/slickdata/sepsis-app-fastapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/slickdata/sepsis-app-fastapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/slickdata/sepsis-app-fastapi/resolve/main/Dockerfile
544 Bytes
| # Use the official Python base image | |
| FROM python:3.9-slim | |
| # Set the working directory inside the container | |
| WORKDIR /code | |
| # Copy the requirements file to the working directory | |
| COPY requirements.txt /code/requirements.txt | |
| # Install the Python dependencies | |
| RUN pip install -r requirements.txt | |
| # Copy the application code to the working directory | |
| COPY . /code | |
| # Expose the port on which the application will run | |
| EXPOSE 7860 | |
| # Run the FastAPI application using uvicorn server | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |