Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
|
|
| 1 |
FROM ollama/ollama:latest
|
| 2 |
|
|
|
|
| 3 |
RUN apt-get update && apt-get install -y curl git && \
|
| 4 |
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
|
| 5 |
apt-get install -y nodejs && \
|
|
@@ -11,8 +13,6 @@ RUN npm install -g openclaw@latest
|
|
| 11 |
EXPOSE 7860
|
| 12 |
ENTRYPOINT []
|
| 13 |
|
| 14 |
-
#
|
| 15 |
-
#
|
| 16 |
-
|
| 17 |
-
# 3. OpenClaw starts IMMEDIATELY to pass health check
|
| 18 |
-
CMD ["/bin/bash", "-c", "ollama serve & (until curl -s http://localhost:11434/api/tags > /dev/null; do sleep 2; done && ollama pull llama3.1 &) && openclaw gateway --port 7860 --bind 0.0.0.0 --auth token --token d868419fea3b0149b5e46fd1b4189b3cff18c0fa06c4d67c"]
|
|
|
|
| 1 |
+
# Base Image
|
| 2 |
FROM ollama/ollama:latest
|
| 3 |
|
| 4 |
+
# Basic requirements
|
| 5 |
RUN apt-get update && apt-get install -y curl git && \
|
| 6 |
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
|
| 7 |
apt-get install -y nodejs && \
|
|
|
|
| 13 |
EXPOSE 7860
|
| 14 |
ENTRYPOINT []
|
| 15 |
|
| 16 |
+
# COMMAND UPDATED with --allow-unconfigured:
|
| 17 |
+
# Isse OpenClaw bina config ke bhi challu rahega taaki aap dashboard khul sako.
|
| 18 |
+
CMD ["/bin/bash", "-c", "ollama serve & openclaw gateway --port 7860 --bind 0.0.0.0 --auth token --token d868419fea3b0149b5e46fd1b4189b3cff18c0fa06c4d67c --allow-unconfigured & sleep 15 && ollama pull llama3.1 && wait"]
|
|
|
|
|
|