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

Update Dockerfile

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