100stacks commited on
Commit
04a013f
·
unverified ·
1 Parent(s): 50f0922

bug: troubleshooting build issues

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