Spaces:
Running
Running
Download Dockerfile from KpakServices/kpak: direct link, hf CLI and curl.
- Browser
- Download file 751 Bytes
-
https://huggingface.co/spaces/KpakServices/kpak/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/KpakServices/kpak/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/KpakServices/kpak/resolve/main/Dockerfile
751 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements first | |
| COPY requirements.txt . | |
| # Install Python dependencies - including gunicorn explicitly | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir flask flask-socketio flask-bcrypt pyjwt python-socketio eventlet gunicorn && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| RUN mkdir -p /data | |
| # Copy the rest of the application | |
| COPY . . | |
| # Make sure templates folder exists | |
| RUN mkdir -p templates | |
| # Expose the port | |
| EXPOSE 7860 | |
| # Use python directly instead of gunicorn (simpler, more reliable) | |
| CMD ["python", "app.py"] |