-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (39 loc) · 1.64 KB
/
Dockerfile
File metadata and controls
47 lines (39 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# OpenClaw benchmark environment
#
# Config (openclaw.json, auth-profiles.json) is NOT baked in here.
# reset_env.sh restores configs/platforms/openclaw.json and
# configs/platforms/openclaw_auth-profiles.json before every task run.
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
# 1. System dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends curl git ca-certificates python3 python3-pip binutils libpython3.12 postgresql-client && \
rm -rf /var/lib/apt/lists/*
# 2. Node.js 22 (NodeSource)
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/*
# 3. OpenClaw
RUN npm install -g openclaw@2026.3.12
# 4. Build and install gog CLI (compiled binary — source is not present in the final image)
COPY tools/gogcli/gog /tmp/gog_src.py
RUN pip3 install --quiet --break-system-packages pyinstaller && \
pyinstaller --onefile --strip --name gog /tmp/gog_src.py && \
mv dist/gog /usr/local/bin/gog && \
rm -rf /tmp/gog_src.py build dist gog.spec /root/.local /root/.cache
ENV GOG_ACCOUNT="alice@gmail.com"
# 5. Initialize openclaw directory structure with a throwaway key.
# reset_env.sh will overwrite openclaw.json and auth-profiles.json
# with the checked-in baseline configs before every task.
RUN openclaw onboard --non-interactive \
--mode local \
--auth-choice openai-api-key \
--openai-api-key "placeholder" \
--secret-input-mode plaintext \
--gateway-port 18789 \
--gateway-bind loopback \
--accept-risk \
--skip-skills \
--daemon-runtime node \
--skip-health
EXPOSE 18789