Update Dockerfile
Browse files- Dockerfile +7 -4
Dockerfile
CHANGED
@@ -66,17 +66,20 @@ RUN mkdir -p models && cd models \
|
|
66 |
"https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files/voices.bin" \
|
67 |
&& ls -la /app/models/
|
68 |
|
69 |
-
# Copy
|
70 |
COPY . .
|
71 |
|
|
|
|
|
|
|
72 |
# Create output directory
|
73 |
RUN mkdir -p output tmp
|
74 |
|
75 |
# Add HF Spaces specific metadata
|
76 |
-
LABEL space.title="
|
77 |
space.sdk="docker" \
|
78 |
-
space.author="
|
79 |
-
space.description="
|
80 |
|
81 |
# Expose the port that HF Spaces expects
|
82 |
EXPOSE 7860
|
|
|
66 |
"https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files/voices.bin" \
|
67 |
&& ls -la /app/models/
|
68 |
|
69 |
+
# Copy all project files and folders
|
70 |
COPY . .
|
71 |
|
72 |
+
# Ensure all files are writable (fix PermissionError for log file)
|
73 |
+
RUN chmod -R a+w /app
|
74 |
+
|
75 |
# Create output directory
|
76 |
RUN mkdir -p output tmp
|
77 |
|
78 |
# Add HF Spaces specific metadata
|
79 |
+
LABEL space.title="Text 2 Mnaim" \
|
80 |
space.sdk="docker" \
|
81 |
+
space.author="khanhthanhdev" \
|
82 |
+
space.description="Text to science video using multi Agent"
|
83 |
|
84 |
# Expose the port that HF Spaces expects
|
85 |
EXPOSE 7860
|