Download Dockerfile from ChBysk/Button: direct link, hf CLI and curl.
- Browser
- Download file 552 Bytes
-
https://huggingface.co/spaces/ChBysk/Button/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ChBysk/Button/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ChBysk/Button/resolve/main/Dockerfile
552 Bytes
| FROM python:3.13-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| # Copy application | |
| COPY app.py . | |
| # Create directories for images | |
| RUN mkdir -p images/uploads images/gallery | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run application | |
| CMD ["python", "app.py"] | |