kshipra-jadav commited on
Commit
0c3d47a
·
1 Parent(s): f778745

add user again

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -8,6 +8,10 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
  RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
10
 
11
- COPY . .
 
 
 
 
12
 
13
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
 
8
 
9
  RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
10
 
11
+ RUN useradd -m -u 1000 user
12
+
13
+ USER user
14
+
15
+ COPY --chown=user . .
16
 
17
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]