File size: 463 Bytes
0e4a18b
 
 
 
eac2b07
 
0e4a18b
04a013f
0e4a18b
04a013f
 
bb4b846
196f044
04a013f
 
 
3a782e6
04a013f
0e4a18b
2925f7b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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"]