philmui commited on
Commit
76cf8a5
·
1 Parent(s): 2ad2582

updated Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -9
Dockerfile CHANGED
@@ -1,11 +1,12 @@
1
- FROM python:3.10
2
-
3
- WORKDIR /code
4
-
5
- COPY ./requirements.txt /code/requirements.txt
6
-
7
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
-
 
9
  COPY . .
 
10
 
11
- CMD ["chainlit", "run", "chat.py", "-w", "--port", "7860"]
 
1
+ FROM python:3.9
2
+ RUN useradd -m -u 1000 user
3
+ USER user
4
+ ENV HOME=/home/user \
5
+ PATH=/home/user/.local/bin:$PATH
6
+ WORKDIR $HOME/app
7
+ COPY --chown=user . $HOME/app
8
+ COPY ./requirements.txt ~/app/requirements.txt
9
+ RUN pip install -r requirements.txt
10
  COPY . .
11
+ CMD ["chainlit", "run", "app.py", "--port", "7860"]
12