File size: 603 Bytes
70ab988
2423159
 
70ab988
d851236
 
 
70ab988
 
 
 
fb2ba72
2423159
70ab988
2423159
 
8b09d71
2423159
70ab988
2423159
8d4e23b
 
 
2423159
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Use the official python 3.10 image
FROM python:3.10-slim-bullseye

# Set the working directory to user's home folder
RUN useradd -m -u 1000 user
USER user

ENV HOME=/home/user \
	PATH=/home/user/.local/bin:$PATH

WORKDIR $HOME/app

# Copy the requirements to working directory
COPY --chown=user:user ./requirements.txt ./requirements.txt

# Install all packages in requirements.txt
RUN pip install --no-cache-dir --user --upgrade -r ./requirements.txt

COPY --chown=user:user . $HOME/app

EXPOSE 8080

CMD ["python", "-m", "chainlit", "run", "model.py", "-h", "--port", "8080", "--host", "0.0.0.0"]