Spaces:
Paused
Paused
Download Dockerfile from bxm0121/session-link-gen: direct link, hf CLI and curl.
- Browser
- Download file 582 Bytes
-
https://huggingface.co/spaces/bxm0121/session-link-gen/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/bxm0121/session-link-gen/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bxm0121/session-link-gen/resolve/main/Dockerfile
582 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PORT=7860 \ | |
| OPENAI_PAY_AUTH_DB=/data/auth.sqlite3 \ | |
| OPENAI_PAY_COOKIE_SECURE=1 \ | |
| OPENAI_PAY_APPROVE_POOL_WORKERS=1 \ | |
| OPENAI_PAY_APPROVE_POOL_MAX_WORKERS=1 \ | |
| OPENAI_PAY_APPROVE_POOL_MIN_WORKERS=1 | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| COPY . . | |
| RUN mkdir -p /data && chown -R 1000:1000 /app /data | |
| USER 1000 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |