Spaces:
Sleeping
Sleeping
Download Dockerfile from Banaxi-Tech/HuggingPolls: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/spaces/Banaxi-Tech/HuggingPolls/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Banaxi-Tech/HuggingPolls/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Banaxi-Tech/HuggingPolls/resolve/main/Dockerfile
319 Bytes
| FROM python:3.12-slim | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user:user . . | |
| USER user | |
| ENV PYTHONUNBUFFERED=1 DATA_DIR=/home/user/data | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"] | |