Spaces:
Paused
Paused
Download Dockerfile from arshitmalik/yt-claw-v8: direct link, hf CLI and curl.
- Browser
- Download file 1.55 kB
-
https://huggingface.co/spaces/arshitmalik/yt-claw-v8/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/arshitmalik/yt-claw-v8/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/arshitmalik/yt-claw-v8/resolve/main/Dockerfile
1.55 kB
| FROM ghcr.io/openclaw/openclaw:latest | |
| USER root | |
| RUN rm -f /etc/cron.d/*health* /etc/cron.d/*hc* /etc/cron.d/*hugging* 2>/dev/null; \ | |
| echo "Health cron files removed" | |
| RUN apt-get update && apt-get install -y \ | |
| curl nginx zstd cron procps git python3 python3-pip \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN curl -fsSL https://ollama.com/install.sh | sh | |
| RUN pip3 install --no-cache-dir --break-system-packages huggingface_hub | |
| RUN printf 'server {\n listen 7860;\n location /__openclaw__/ {\n proxy_pass http://127.0.0.1:8081;\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 location /api/ {\n proxy_pass http://127.0.0.1:8081;\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 location /v1/ {\n proxy_pass http://127.0.0.1:8081;\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 location /health {\n proxy_pass http://127.0.0.1:8081;\n proxy_set_header Host \$host;\n }\n location / {\n proxy_pass http://127.0.0.1:8080;\n proxy_set_header Host \$host;\n }\n}\n' > /etc/nginx/sites-available/default | |
| WORKDIR /app | |
| COPY . . | |
| RUN chmod +x start.sh | |
| EXPOSE 7860 | |
| CMD ["/app/start.sh"] | |