Spaces:
Sleeping
Sleeping
Download Dockerfile from gamedevmms/pixelai-server: direct link, hf CLI and curl.
- Browser
- Download file 454 Bytes
-
https://huggingface.co/spaces/gamedevmms/pixelai-server/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/gamedevmms/pixelai-server/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/gamedevmms/pixelai-server/resolve/main/Dockerfile
454 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libgl1 \ | |
| libglib2.0-0 && \ | |
| rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt && \ | |
| pip install --no-cache-dir gunicorn | |
| COPY server.py ./ | |
| COPY public ./public | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--threads", "8", "server:app"] | |