snrspeaks commited on
Commit
73a6ad8
β€’
1 Parent(s): cc8439e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -8
Dockerfile CHANGED
@@ -1,10 +1,11 @@
1
  FROM python:3.9
2
  RUN useradd -m -u 1000 user
3
- WORKDIR /home/user/app
4
- COPY --chown=user . /home/user/app
5
- COPY ./requirements.txt /home/user/app/requirements.txt
6
- USER root
7
- RUN chmod -R 777 /home/user/app/.chainlit
8
- USER 1000
9
- RUN pip install -r /home/user/app/requirements.txt
10
- CMD ["chainlit", "run", "app.py", "--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"]