Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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
|
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/
|