Spaces:
Paused
Paused
Arshit Malik commited on
Commit ·
12e5549
1
Parent(s): 8d8777e
fix: install python3 + pip3 in openclaw base image
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
|
@@ -2,14 +2,16 @@ FROM ghcr.io/openclaw/openclaw:latest
|
|
| 2 |
|
| 3 |
USER root
|
| 4 |
|
| 5 |
-
|
| 6 |
-
RUN rm -f /etc/cron.d/*health* /etc/cron.d/*hc* 2>/dev/null; \
|
| 7 |
-
rm -f /etc/cron.d/*hugging* 2>/dev/null; \
|
| 8 |
echo "Health cron files removed"
|
| 9 |
|
| 10 |
-
RUN apt-get update && apt-get install -y
|
|
|
|
|
|
|
|
|
|
| 11 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
| 12 |
-
|
|
|
|
| 13 |
|
| 14 |
RUN printf 'server {\n listen 7860;\n location / {\n proxy_pass http://127.0.0.1:8080;\n proxy_http_version 1.1;\n proxy_set_header Upgrade $http_upgrade;\n proxy_set_header Connection "upgrade";\n proxy_set_header Host $host;\n }\n}\n' > /etc/nginx/sites-available/default
|
| 15 |
|
|
|
|
| 2 |
|
| 3 |
USER root
|
| 4 |
|
| 5 |
+
RUN rm -f /etc/cron.d/*health* /etc/cron.d/*hc* /etc/cron.d/*hugging* 2>/dev/null; \
|
|
|
|
|
|
|
| 6 |
echo "Health cron files removed"
|
| 7 |
|
| 8 |
+
RUN apt-get update && apt-get install -y \
|
| 9 |
+
curl nginx zstd cron procps git python3 python3-pip \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
| 13 |
+
|
| 14 |
+
RUN pip3 install --no-cache-dir --break-system-packages huggingface_hub
|
| 15 |
|
| 16 |
RUN printf 'server {\n listen 7860;\n location / {\n proxy_pass http://127.0.0.1:8080;\n proxy_http_version 1.1;\n proxy_set_header Upgrade $http_upgrade;\n proxy_set_header Connection "upgrade";\n proxy_set_header Host $host;\n }\n}\n' > /etc/nginx/sites-available/default
|
| 17 |
|