Spaces:
Runtime error
Runtime error
Download Dockerfile from XThomasBU/chainlit-example: direct link, hf CLI and curl.
- Browser
- Download file 389 Bytes
-
https://huggingface.co/spaces/XThomasBU/chainlit-example/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/XThomasBU/chainlit-example/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/XThomasBU/chainlit-example/resolve/main/Dockerfile
389 Bytes
| FROM python:3.11 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user . . | |
| RUN pip install -r requirements.txt | |
| RUN --mount=type=secret,id=HUGGINGFACE_API_TOKEN,mode=0444,required=true | |
| RUN --mount=type=secret,id=CHAINLIT_AUTH_SECRET,mode=0444,required=true | |
| CMD ["chainlit", "run", "app.py", "--port", "7860"] | |