File size: 507 Bytes
8819801 8f414ba 8819801 06900c2 8819801 36000cf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
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 . $HOME/app
COPY ./requirements.txt ~/app/requirements.txt
RUN pip install --upgrade pip
RUN pip install -r requirements.txt --use-deprecated=legacy-resolver
COPY . .
CMD ["chainlit", "run", "app.py", "--port", "7860", "-w"] |