Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Wir nutzen die stabile Debian-Basisversion von Node 22
|
| 2 |
+
FROM node:22-bookworm
|
| 3 |
+
|
| 4 |
+
# Nur die nötigsten Zertifikate installieren
|
| 5 |
+
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
|
| 6 |
+
|
| 7 |
+
# OpenClaw installieren
|
| 8 |
+
RUN npm install -g openclaw@latest
|
| 9 |
+
|
| 10 |
+
WORKDIR /app
|
| 11 |
+
RUN chmod 777 /app
|
| 12 |
+
ENV HOME=/app
|
| 13 |
+
|
| 14 |
+
# Der Standard-Port für Hugging Face
|
| 15 |
+
ENV PORT=7860
|
| 16 |
+
EXPOSE 7860
|
| 17 |
+
|
| 18 |
+
# DER SICHERE STARTBEFEHL:
|
| 19 |
+
# Das System ersetzt $OPENCLAW_TOKEN automatisch mit deinem Secret aus den Settings!
|
| 20 |
+
CMD openclaw config set gateway.controlUi.dangerouslyAllowHostHeaderOriginFallback true && \
|
| 21 |
+
openclaw config set gateway.controlUi.dangerouslyDisableDeviceAuth true && \
|
| 22 |
+
openclaw config set agents.defaults.model.primary "huggingface/Qwen/Qwen2.5-Coder-32B-Instruct" && \
|
| 23 |
+
openclaw gateway run --port 7860 --bind lan --allow-unconfigured --token $OPENCLAW_TOKEN
|