Spaces:
Sleeping
Sleeping
Download Dockerfile from 100stacks/YACI: direct link, hf CLI and curl.
- Browser
- Download file 463 Bytes
-
https://huggingface.co/spaces/100stacks/YACI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/100stacks/YACI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/100stacks/YACI/resolve/main/Dockerfile
463 Bytes
| # ref: https://huggingface.co/docs/hub/spaces-sdks-docker | |
| FROM python:3.9 | |
| ENV HOME=/home/user \ | |
| PATH="/home/user/.local/bin:$PATH" | |
| RUN useradd -m -d $HOME -s /bin/bash user | |
| WORKDIR $HOME/app | |
| COPY . . | |
| COPY . $HOME/app | |
| COPY ./requirements.txt ~/app/requirements.txt | |
| RUN chown -R user:user $HOME | |
| USER user | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| #COPY . . | |
| CMD ["chainlit", "run", "app.py", "-w", "--host", "0.0.0.0", "--port", "7860"] | |