Spaces:
Sleeping
Sleeping
Download Dockerfile from carsten12/SizeRecommend: direct link, hf CLI and curl.
- Browser
- Download file 542 Bytes
-
https://huggingface.co/spaces/carsten12/SizeRecommend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/carsten12/SizeRecommend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/carsten12/SizeRecommend/resolve/main/Dockerfile
542 Bytes
| # Use a lightweight Python base | |
| FROM python:3.10-slim | |
| # Install any OS‐level deps (if needed) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| # (no extra system packages needed in this particular app) \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy our application code | |
| COPY app.py . | |
| # Expose Gradio’s default port | |
| EXPOSE 7860 | |
| # Launch the app | |
| CMD ["python", "app.py"] | |