Spaces:
Runtime error
Runtime error
Download Dockerfile from Serjesh/rag_pure_python: direct link, hf CLI and curl.
- Browser
- Download file 658 Bytes
-
https://huggingface.co/spaces/Serjesh/rag_pure_python/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Serjesh/rag_pure_python/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Serjesh/rag_pure_python/resolve/main/Dockerfile
658 Bytes
| FROM python:3.9 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| RUN mkdir -p $HOME/src/app $HOME/lutil $HOME/data | |
| COPY --chown=user /src/app/*.py $HOME/src/app/ | |
| COPY --chown=user /src/app/*.txt $HOME/src/app/ | |
| COPY --chown=user *.md $HOME/src/app/ | |
| RUN ls -r $HOME/src/app | |
| COPY --chown=user lutil/ $HOME/lutil/ | |
| COPY --chown=user data/KingLear.txt $HOME/data/ | |
| WORKDIR $HOME/src/app | |
| RUN ls -r $HOME/src/app $HOME/lutil $HOME/data | |
| # COPY --chown=user . $HOME/src/app | |
| # COPY ./requirements.txt ~/app/requirements.txt | |
| RUN pip install -r requirements.txt | |
| COPY . . | |
| CMD ["chainlit", "run", "app.py", "--port", "7860"] | |