Spaces:
Sleeping
Sleeping
Download Dockerfile from Maddy21/deepfake-detection-api: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/spaces/Maddy21/deepfake-detection-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Maddy21/deepfake-detection-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Maddy21/deepfake-detection-api/resolve/main/Dockerfile
383 Bytes
| # Use an official lightweight Python image | |
| FROM python:3.10 | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy required files | |
| COPY requirements.txt . | |
| COPY app.py . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose the API port | |
| EXPOSE 7860 | |
| # Run FastAPI application | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |