Download Dockerfile from pigracing/zg: direct link, hf CLI and curl.
- Browser
- Download file 693 Bytes
-
https://huggingface.co/spaces/pigracing/zg/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/pigracing/zg/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/pigracing/zg/resolve/main/Dockerfile
693 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PORT=5002 \ | |
| SQLITE_PATH=/app/data/history.db | |
| WORKDIR /app | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends gcc g++ make curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN mkdir -p /app/data | |
| EXPOSE 5002 | |
| CMD ["sh", "-c", "gunicorn --worker-class ${GUNICORN_WORKER_CLASS:-gthread} --threads ${GUNICORN_THREADS:-4} -w ${WEB_CONCURRENCY:-2} --timeout ${GUNICORN_TIMEOUT:-180} --graceful-timeout ${GUNICORN_GRACEFUL_TIMEOUT:-30} --keep-alive ${GUNICORN_KEEP_ALIVE:-5} -b 0.0.0.0:${PORT:-5002} app:app"] | |