8900 commited on
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -51,10 +51,14 @@ RUN node -e " \
|
|
| 51 |
console.log('[patch] Done. Patched: ' + patched + '/' + bundles.length); \
|
| 52 |
" || echo "[patch] Non-fatal: patch step failed"
|
| 53 |
|
|
|
|
|
|
|
| 54 |
RUN chmod +x /app/entrypoint.sh \
|
| 55 |
/app/security-check.sh && \
|
| 56 |
mkdir -p /home/user && \
|
| 57 |
-
|
|
|
|
|
|
|
| 58 |
chown node:node /app/entrypoint.sh \
|
| 59 |
/app/security-check.sh \
|
| 60 |
/app/openclaw-template.json \
|
|
|
|
| 51 |
console.log('[patch] Done. Patched: ' + patched + '/' + bundles.length); \
|
| 52 |
" || echo "[patch] Non-fatal: patch step failed"
|
| 53 |
|
| 54 |
+
# Pre-create /data with open permissions so the node user can write to it
|
| 55 |
+
# when the HF Storage Bucket is mounted at runtime
|
| 56 |
RUN chmod +x /app/entrypoint.sh \
|
| 57 |
/app/security-check.sh && \
|
| 58 |
mkdir -p /home/user && \
|
| 59 |
+
mkdir -p /data && \
|
| 60 |
+
chmod 777 /data && \
|
| 61 |
+
chown -R node:node /home/user /data && \
|
| 62 |
chown node:node /app/entrypoint.sh \
|
| 63 |
/app/security-check.sh \
|
| 64 |
/app/openclaw-template.json \
|