mwitiderrick commited on
Commit
980422e
·
verified ·
1 Parent(s): 02a77e5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -2,10 +2,13 @@ FROM python:3.11
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 ["python", "-m", "chainlit", "run", "app.py", "--port", "7860", "--host", "0.0.0.0", "-h"]
 
2
  RUN useradd -m -u 1000 user
3
  USER user
4
  ENV HOME=/home/user \
5
+ PATH=/home/user/.local/bin:/usr/local/bin:$PATH
6
  WORKDIR $HOME/app
7
+
8
+ COPY --chown=user requirements.txt ./
9
+ RUN pip install --upgrade pip \
10
+ && pip install -r requirements.txt
11
+
12
+ COPY --chown=user . .
13
+
14
  CMD ["python", "-m", "chainlit", "run", "app.py", "--port", "7860", "--host", "0.0.0.0", "-h"]