File size: 693 Bytes
21804d2
 
 
cdabae1
c0a4b4c
cdabae1
 
 
 
 
 
21804d2
dc15c4f
21804d2
 
dc15c4f
21804d2
 
 
 
bd73f20
 
 
21804d2
 
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
# Use an official Python runtime as a parent image
FROM python:3.10-slim

# using USER settings as recommended in this video https://www.youtube.com/watch?v=vP2JSAZLnRk
RUN useradd -m -u 1000 user

USER user

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

# Set the working directory in the container
WORKDIR $HOME

# Copy the current directory contents into the container
#COPY .

# Following instructions within HF docker file setup
COPY . .

# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt

# Run app.py when the container launches
CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]