MartinT commited on
Commit
157e160
1 Parent(s): a4b84ff

feat: Use custom data dir to workaround the permissions.

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -11,7 +11,6 @@ RUN useradd -m -u 1000 user
11
 
12
  USER user
13
 
14
- RUN chown user -R /usr/local/
15
  RUN apt update && apt install -y ffmpeg
16
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
17
 
@@ -24,5 +23,9 @@ COPY --chown=user . $HOME/app
24
 
25
  ENV H2O_WAVE_LISTEN=":7860"
26
  ENV H2O_WAVE_ADDRESS='http://127.0.0.1:7860'
 
 
 
 
27
 
28
  CMD ["wave", "run", "app", "--no-reload"]
 
11
 
12
  USER user
13
 
 
14
  RUN apt update && apt install -y ffmpeg
15
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
16
 
 
23
 
24
  ENV H2O_WAVE_LISTEN=":7860"
25
  ENV H2O_WAVE_ADDRESS='http://127.0.0.1:7860'
26
+ ENV H2O_WAVE_DATA_DIR='/home/user/app/data'
27
+
28
+ RUN mkdir -p $HOME/app/data
29
+
30
 
31
  CMD ["wave", "run", "app", "--no-reload"]