Spaces:
Sleeping
Sleeping
| FROM nvidia/cuda:11.7.1-base-ubuntu22.04 | |
| RUN apt update | |
| RUN apt-get install -y python3.10 | |
| RUN apt-get -y install python3-pip | |
| RUN useradd -m -u 1000 user | |
| # Switch to the "user" user | |
| USER user | |
| # Set home to the user's home directory | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| # Set the working directory to the user's home directory | |
| WORKDIR $HOME/app | |
| COPY --chown=user requirements.txt requirements.txt | |
| COPY --chown=user chainlit.md chainlit.md | |
| RUN pip install -r requirements.txt | |
| COPY --chown=user . . | |
| CMD ["python3", "-m" , "chainlit", "run", "clbaseimplementation.py"] | |