Download Dockerfile from Babu09/Mat2Bot: direct link, hf CLI and curl.
- Browser
- Download file 606 Bytes
-
https://huggingface.co/spaces/Babu09/Mat2Bot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Babu09/Mat2Bot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Babu09/Mat2Bot/resolve/main/Dockerfile
606 Bytes
| # The public front page of Mat2Bot on a Hugging Face Space (Docker SDK): one box, the story. No engine code here: it | |
| # forwards the page's calls to the private engine Space with a read token kept as the Space secret ENGINE_TOKEN. | |
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1 | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /home/user/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install -r requirements.txt | |
| COPY --chown=user . . | |
| USER user | |
| ENV HOME=/home/user | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |