Guru-25 commited on
Commit
7dc8e03
·
verified ·
1 Parent(s): 066bc1c

fix permisson error

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -20,6 +20,16 @@ COPY requirements*.txt /app/
20
  RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements-min.txt
21
  COPY *.py *.sh *.default.yaml README.md LICENSE /app/
22
 
 
 
 
 
 
 
 
 
 
 
23
  ENV TTS_HOME=voices
24
  ENV HF_HOME=voices
25
 
 
20
  RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements-min.txt
21
  COPY *.py *.sh *.default.yaml README.md LICENSE /app/
22
 
23
+ # Ensure scripts are executable
24
+ RUN chmod +x /app/*.sh
25
+
26
+ # Add a non-root user and change ownership
27
+ RUN useradd -ms /bin/bash appuser
28
+ RUN chown -R appuser:appuser /app
29
+
30
+ USER appuser
31
+ WORKDIR /app
32
+
33
  ENV TTS_HOME=voices
34
  ENV HF_HOME=voices
35