Download Dockerfile from ServerX/game.onl: direct link, hf CLI and curl.
- Browser
- Download file 561 Bytes
-
https://huggingface.co/spaces/ServerX/game.onl/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ServerX/game.onl/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ServerX/game.onl/resolve/main/Dockerfile
561 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| gcc \ | |
| python3-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user && \ | |
| chown -R user:user /app | |
| USER user | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PATH="/home/user/.local/bin:${PATH}" | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir --user -r requirements.txt | |
| COPY --chown=user . . | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "600", "--preload", "--workers", "2", "app:app"] |