harmesh95 commited on
Commit
1634aff
·
1 Parent(s): e2af51e

fix: create and grant permissions for /app/output to avoid PermissionError

Browse files

* Added mkdir and chmod for /app/output alongside /app/backend/output
* Ensures Hugging Face Spaces runtime user can write to output folder
* Prevents PermissionError: [Errno 13] Permission denied: '/app/output'

Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -13,7 +13,8 @@ ENV PYTHONUNBUFFERED=1 \
13
  PYTHONDONTWRITEBYTECODE=1 \
14
  PIP_NO_CACHE_DIR=1
15
 
16
- RUN mkdir -p /app/backend/output && chmod -R 777 /app/backend/output
 
17
 
18
 
19
 
 
13
  PYTHONDONTWRITEBYTECODE=1 \
14
  PIP_NO_CACHE_DIR=1
15
 
16
+ RUN mkdir -p /app/output /app/backend/output && chmod -R 777 /app/output /app/backend/output
17
+
18
 
19
 
20