Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +15 -1
Dockerfile
CHANGED
|
@@ -1,5 +1,19 @@
|
|
| 1 |
FROM agent0ai/agent-zero:latest
|
| 2 |
|
|
|
|
| 3 |
ENV WEB_UI_PORT=7860
|
|
|
|
| 4 |
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM agent0ai/agent-zero:latest
|
| 2 |
|
| 3 |
+
# Variables necesarias para HuggingFace Spaces
|
| 4 |
ENV WEB_UI_PORT=7860
|
| 5 |
+
ENV BRANCH=main
|
| 6 |
|
| 7 |
+
# Ejecutar la instalación/inicialización durante el BUILD (aquí sí hay red)
|
| 8 |
+
RUN bash /ins/install_A0.sh $BRANCH || true
|
| 9 |
+
RUN bash /ins/install_A02.sh || true
|
| 10 |
+
|
| 11 |
+
# HuggingFace requiere usuario no-root con UID 1000
|
| 12 |
+
RUN useradd -m -u 1000 user || true
|
| 13 |
+
RUN chown -R 1000:1000 /a0 || true
|
| 14 |
+
USER 1000
|
| 15 |
+
|
| 16 |
+
EXPOSE 7860
|
| 17 |
+
|
| 18 |
+
# Arrancar directamente sin el init que falla
|
| 19 |
+
CMD ["/bin/bash", "/exe/run_A0.sh"]
|