scott12355 commited on
Commit
29bd8c6
·
verified ·
1 Parent(s): 69f0735

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -1
Dockerfile CHANGED
@@ -10,7 +10,18 @@ COPY . /app
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- COPY . .
 
 
 
 
 
 
 
 
 
 
 
14
  # Make port 5500 available to the world outside this container
15
  EXPOSE 7860
16
 
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+
14
+
15
+ RUN useradd -m -u 1000 user
16
+ USER user
17
+ ENV HOME=/home/user \
18
+ PATH=/home/user/.local/bin:$PATH
19
+
20
+ WORKDIR $HOME/app
21
+
22
+ COPY --chown=user . $HOME/app
23
+
24
+
25
  # Make port 5500 available to the world outside this container
26
  EXPOSE 7860
27