File size: 658 Bytes
04bb9a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"]