Spaces:
No application file
No application file
Download dockerfile from vitorcalvi/dyagnosysapi: direct link, hf CLI and curl.
- Browser
- Download file 521 Bytes
-
https://huggingface.co/spaces/vitorcalvi/dyagnosysapi/resolve/main/dockerfile
- Command line
-
hf download hf://spaces/vitorcalvi/dyagnosysapi/dockerfile
-
curl -L -o dockerfile https://huggingface.co/spaces/vitorcalvi/dyagnosysapi/resolve/main/dockerfile
521 Bytes
| # Use an official Python image as a base | |
| FROM python:3.9-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy requirements.txt into the container | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application code into the container | |
| COPY . . | |
| # Expose the port that Render or Hugging Face Spaces will use | |
| EXPOSE 8000 | |
| # Command to run the FastAPI app with uvicorn | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |