Natthathida commited on
Commit
b33aa40
·
verified ·
1 Parent(s): 7ea3e25

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -1
Dockerfile CHANGED
@@ -34,9 +34,17 @@ COPY . .
34
 
35
  # RUN mkdir blabla
36
  # RUN mkdir blabla/cache
37
- RUN mkdir -p /app/cache/hub/models--suno--bark/snapshots/70a8a7d34168586dc5d028fa9666aceade177992
38
  RUN mkdir -p /app/cache/hub/models--suno--bark/blobs
39
 
 
 
 
 
 
 
 
 
40
  RUN chmod -R u+rwX /app/cache/hub
41
 
42
  ENV HF_HOME=/app/cache/
 
34
 
35
  # RUN mkdir blabla
36
  # RUN mkdir blabla/cache
37
+ RUN mkdir -p /app/cache/hub/models--suno--bark/snapshots
38
  RUN mkdir -p /app/cache/hub/models--suno--bark/blobs
39
 
40
+ # ตั้งค่าสิทธิ์ในไดเรกทอรี snapshots
41
+ RUN find /app/cache/hub/models--suno--bark/snapshots -type f -exec chmod u+rw {} \; \
42
+ && find /app/cache/hub/models--suno--bark/snapshots -type d -exec chmod u+rwx {} \;
43
+
44
+ # ตั้งค่าสิทธิ์ในไดเรกทอรี blobs
45
+ RUN find /app/cache/hub/models--suno--bark/blobs -type f -exec chmod u+rw {} \; \
46
+ && find /app/cache/hub/models--suno--bark/blobs -type d -exec chmod u+rwx {} \;
47
+
48
  RUN chmod -R u+rwX /app/cache/hub
49
 
50
  ENV HF_HOME=/app/cache/