Spaces:
Sleeping
Sleeping
| # 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"] | |