philipk22 commited on
Commit
b0b46b5
·
1 Parent(s): c2130ee

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -1,10 +1,11 @@
1
  FROM python:3.9
2
  RUN useradd -m -u 1000 user
 
3
  ENV HOME=/home/user \
4
  PATH=/home/user/.local/bin:$PATH
5
- WORKDIR /app
6
- COPY ./requirements.txt /app/
7
- RUN pip install -r /app/requirements.txt
8
- USER user
9
- COPY --chown=user . /app/
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"]