JoaquinZ commited on
Commit
7214a59
·
verified ·
1 Parent(s): e6e348a

Upload Dockerfile via API

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -28,6 +28,12 @@ COPY . /app
28
  RUN mkdir -p /app/app_cache /app/app_tmp /app/speechbrain_cache /app/.cache/matplotlib \
29
  && chmod -R 0777 /app/app_cache /app/app_tmp /app/speechbrain_cache /app/.cache/matplotlib || true
30
 
 
 
 
 
 
 
31
  # Ensure entrypoint script is executable
32
  RUN chmod +x /app/scripts/entrypoint.sh
33
 
 
28
  RUN mkdir -p /app/app_cache /app/app_tmp /app/speechbrain_cache /app/.cache/matplotlib \
29
  && chmod -R 0777 /app/app_cache /app/app_tmp /app/speechbrain_cache /app/.cache/matplotlib || true
30
 
31
+ # Make the entire /app directory writable so runtime processes (which may run
32
+ # as an unprivileged user inside Spaces) can create files directly under /app
33
+ # such as transcription_result.json. This is a pragmatic fix; see notes below
34
+ # for a safer alternative.
35
+ RUN chmod -R 0777 /app || true
36
+
37
  # Ensure entrypoint script is executable
38
  RUN chmod +x /app/scripts/entrypoint.sh
39