Update Dockerfile
Browse files- Dockerfile +34 -33
Dockerfile
CHANGED
|
@@ -36,39 +36,40 @@ mkdir -p /root/.openclaw/credentials\n\
|
|
| 36 |
rm -f /root/.openclaw/agents/main/agent/auth-profiles.json\n\
|
| 37 |
\n\
|
| 38 |
# Generate minimal config if not exists\n\
|
| 39 |
-
if [ ! -f /root/.openclaw/openclaw.json ]; then
|
| 40 |
-
cat > /root/.openclaw/openclaw.json << EOF
|
| 41 |
-
{
|
| 42 |
-
"env": {
|
| 43 |
-
"GOOGLE_API_KEY": "${GEMINI_API_KEY_1}",
|
| 44 |
-
"GEMINI_API_KEY": "${GEMINI_API_KEY_1}",
|
| 45 |
-
"GOOGLE_GENERATIVE_AI_API_KEY": "${GEMINI_API_KEY_1}",
|
| 46 |
-
"PALM_API_KEY": "${GEMINI_API_KEY_1}"
|
| 47 |
-
},
|
| 48 |
-
"gateway": {
|
| 49 |
-
"mode": "local",
|
| 50 |
-
"bind": "lan",
|
| 51 |
-
"port": 7860,
|
| 52 |
-
"trustedProxies": ["0.0.0.0/0"],
|
| 53 |
-
"auth": {
|
| 54 |
-
"mode": "token",
|
| 55 |
-
"token": "${SETUP_PASSWORD}"
|
| 56 |
-
},
|
| 57 |
-
"controlUi": {
|
| 58 |
-
"allowInsecureAuth": true
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
}
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
|
|
|
| 72 |
# Fix permissions\n\
|
| 73 |
chmod 700 /root/.openclaw\n\
|
| 74 |
chmod 600 /root/.openclaw/openclaw.json\n\
|
|
|
|
| 36 |
rm -f /root/.openclaw/agents/main/agent/auth-profiles.json\n\
|
| 37 |
\n\
|
| 38 |
# Generate minimal config if not exists\n\
|
| 39 |
+
if [ ! -f /root/.openclaw/openclaw.json ]; then
|
| 40 |
+
cat > /root/.openclaw/openclaw.json << EOF
|
| 41 |
+
{
|
| 42 |
+
"env": {
|
| 43 |
+
"GOOGLE_API_KEY": "${GEMINI_API_KEY_1}",
|
| 44 |
+
"GEMINI_API_KEY": "${GEMINI_API_KEY_1}",
|
| 45 |
+
"GOOGLE_GENERATIVE_AI_API_KEY": "${GEMINI_API_KEY_1}",
|
| 46 |
+
"PALM_API_KEY": "${GEMINI_API_KEY_1}"
|
| 47 |
+
},
|
| 48 |
+
"gateway": {
|
| 49 |
+
"mode": "local",
|
| 50 |
+
"bind": "lan",
|
| 51 |
+
"port": 7860,
|
| 52 |
+
"trustedProxies": ["0.0.0.0/0"],
|
| 53 |
+
"auth": {
|
| 54 |
+
"mode": "token",
|
| 55 |
+
"token": "${SETUP_PASSWORD}"
|
| 56 |
+
},
|
| 57 |
+
"controlUi": {
|
| 58 |
+
"allowInsecureAuth": true,
|
| 59 |
+
"allowedOrigins": ["*"]
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"agents": {
|
| 63 |
+
"defaults": {
|
| 64 |
+
"model": {
|
| 65 |
+
"primary": "google/gemini-1.5-pro"
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
EOF
|
| 71 |
+
fi
|
| 72 |
+
|
| 73 |
# Fix permissions\n\
|
| 74 |
chmod 700 /root/.openclaw\n\
|
| 75 |
chmod 600 /root/.openclaw/openclaw.json\n\
|