ZodiUOA commited on
Commit
c672dbf
1 Parent(s): 12281cc
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -5,7 +5,17 @@ WORKDIR /code
5
  COPY ./requirements.txt /code/requirements.txt
6
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
8
 
9
  COPY . .
10
 
 
 
 
 
 
 
 
 
 
11
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
+ RUN apt update && apt upgrade
9
 
10
  COPY . .
11
 
12
+ RUN useradd -m -u 1000 user
13
+ USER user
14
+ ENV HOME=/home/user \
15
+ PATH=/home/user/.local/bin:$PATH
16
+
17
+ WORKDIR $HOME/app
18
+
19
+ COPY --chown=user . $HOME/app
20
+
21
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]