Download Dockerfile from MySafeCode/FlaskedPygameNoAPI: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/spaces/MySafeCode/FlaskedPygameNoAPI/resolve/8639577ccf9b91cc5c84e3ccebda62810edd1c28/Dockerfile
- Command line
-
hf download hf://spaces/MySafeCode/FlaskedPygameNoAPI@8639577ccf9b91cc5c84e3ccebda62810edd1c28/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MySafeCode/FlaskedPygameNoAPI/resolve/8639577ccf9b91cc5c84e3ccebda62810edd1c28/Dockerfile
443 Bytes
| FROM python:3.9-slim | |
| # Install system dependencies for pygame | |
| RUN apt-get update && apt-get install -y \ | |
| libsdl2-mixer-2.0-0 \ | |
| libsdl2-image-2.0-0 \ | |
| libsdl2-2.0-0 \ | |
| libsdl2-ttf-2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR . | |
| # Copy requirements first | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Hugging Face uses port 7860 | |
| ENV PORT=7860 | |
| # Run the application | |
| CMD ["python", "app.py"] |