radames commited on
Commit
67e0cf4
1 Parent(s): 2be70cd

set user write permission

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -1
Dockerfile CHANGED
@@ -10,7 +10,16 @@ COPY ./requirements.txt /code/requirements.txt
10
  RUN apt update && apt install -y ffmpeg
11
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
13
- COPY . .
 
 
 
 
 
 
 
 
 
14
 
15
  ENV H2O_WAVE_LISTEN=":7860"
16
  ENV H2O_WAVE_ADDRESS='http://127.0.0.1:7860'
 
10
  RUN apt update && apt install -y ffmpeg
11
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
13
+ RUN useradd -m -u 1000 user
14
+
15
+ USER user
16
+
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
  ENV H2O_WAVE_LISTEN=":7860"
25
  ENV H2O_WAVE_ADDRESS='http://127.0.0.1:7860'