Spaces:
Sleeping
Sleeping
Download Dockerfile from Rolaficus/webhook-handler: direct link, hf CLI and curl.
- Browser
- Download file 432 Bytes
-
https://huggingface.co/spaces/Rolaficus/webhook-handler/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Rolaficus/webhook-handler/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Rolaficus/webhook-handler/resolve/main/Dockerfile
432 Bytes
| FROM python:3.9 | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| RUN chown user:user /app | |
| USER user | |
| COPY --chown=user:user requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| COPY --chown=user:user . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |