Spaces:
Running
Running
Download Dockerfile from RockCoder23/daawdawedrfewawe: direct link, hf CLI and curl.
- Browser
- Download file 359 Bytes
-
https://huggingface.co/spaces/RockCoder23/daawdawedrfewawe/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/RockCoder23/daawdawedrfewawe/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/RockCoder23/daawdawedrfewawe/resolve/main/Dockerfile
359 Bytes
| # Use a lightweight Python image | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /code | |
| # Copy and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the project | |
| COPY . . | |
| # Run FastAPI on port 7860 (HuggingFace default) | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |