Spaces:
Paused
Paused
Download DockerFile from TechAvenger/TrashCollector: direct link, hf CLI and curl.
- Browser
- Download file 341 Bytes
-
https://huggingface.co/spaces/TechAvenger/TrashCollector/resolve/main/DockerFile
- Command line
-
hf download hf://spaces/TechAvenger/TrashCollector/DockerFile
-
curl -L -o DockerFile https://huggingface.co/spaces/TechAvenger/TrashCollector/resolve/main/DockerFile
341 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install Python dependencies first (cached layer) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all project files | |
| COPY . . | |
| # HuggingFace Spaces requires port 7860 | |
| EXPOSE 7860 | |
| # Launch FastAPI server | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |