Spaces:
Sleeping
Sleeping
Download Dockerfile from euler314/speed_test: direct link, hf CLI and curl.
- Browser
- Download file 560 Bytes
-
https://huggingface.co/spaces/euler314/speed_test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/euler314/speed_test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/euler314/speed_test/resolve/main/Dockerfile
560 Bytes
| # Dockerfile | |
| # Base image: lightweight Python 3.9 | |
| FROM python:3.9-slim | |
| # Install system packages if needed (none strictly required here) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set work 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 port 7860 (Gradio + Flask) | |
| EXPOSE 7860 | |
| # Launch the combined Flask + Gradio server | |
| CMD ["python", "app.py"] | |