dahyedahye commited on
Commit
416ecfb
·
1 Parent(s): 3e210b5

Add application file

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -25,8 +25,14 @@ WORKDIR /Whisper-WebUI
25
  COPY . .
26
  COPY --from=builder /Whisper-WebUI/venv /Whisper-WebUI/venv
27
 
28
- # Set permissions
29
- RUN chown -R 1000:1000 /Whisper-WebUI/models /Whisper-WebUI/outputs
 
 
 
 
 
 
30
 
31
  VOLUME [ "/Whisper-WebUI/models" ]
32
  VOLUME [ "/Whisper-WebUI/outputs" ]
 
25
  COPY . .
26
  COPY --from=builder /Whisper-WebUI/venv /Whisper-WebUI/venv
27
 
28
+ # Create the necessary directories and set permissions
29
+ RUN mkdir -p /Whisper-WebUI/models /Whisper-WebUI/outputs && \
30
+ chown -R 1000:1000 /Whisper-WebUI/models /Whisper-WebUI/outputs
31
+
32
+ # Use a non-root user
33
+ RUN useradd -m user && \
34
+ chown -R user:user /Whisper-WebUI
35
+ USER user
36
 
37
  VOLUME [ "/Whisper-WebUI/models" ]
38
  VOLUME [ "/Whisper-WebUI/outputs" ]