Commit
·
5c1f200
1
Parent(s):
680dd7d
fix(runtime): ensure /data is writable for non-root (chmod -R 777 /data)
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -25,7 +25,7 @@ COPY . .
|
|
| 25 |
|
| 26 |
# Create directories for uploads and results
|
| 27 |
# Ensure writable data directory exists for Spaces
|
| 28 |
-
RUN mkdir -p /data/uploads /data/results &&
|
| 29 |
|
| 30 |
# Handle Firebase credentials from environment variable (for Hugging Face Spaces secrets)
|
| 31 |
# This allows the credentials to be passed as a secret and written to file at runtime
|
|
|
|
| 25 |
|
| 26 |
# Create directories for uploads and results
|
| 27 |
# Ensure writable data directory exists for Spaces
|
| 28 |
+
RUN mkdir -p /data/uploads /data/results && chmod -R 777 /data
|
| 29 |
|
| 30 |
# Handle Firebase credentials from environment variable (for Hugging Face Spaces secrets)
|
| 31 |
# This allows the credentials to be passed as a secret and written to file at runtime
|