WildClawBench
WildClawBench copied to clipboard
Dockerfile是否可以提供
不同的运行时有从头构建的Dockerfile可以共享么,现在只能通过load方式,自定义harness比较困难。
Since we went through several iterations during development, we unfortunately did not keep a clean and complete Dockerfile. The environment was built on top of Ubuntu 22.04.
If you have any questions about specific details of the environment setup, feel free to reach out to me via email ([email protected]). I would be happy to discuss and help.
You can try using the following Dockerfile. Please place the corresponding requirements.txt file in the same directory as the Dockerfile, and then build the image directly.
Dockerfile:
ARG DEBIAN_FRONTEND=noninteractive
ARG TARGETARCH
ARG UBUNTU_MIRROR=http://mirrors.tuna.tsinghua.edu.cn/ubuntu
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
CONDA_DIR=/opt/conda \
PIP_NO_CACHE_DIR=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
RUN sed -i \
"s|http://archive.ubuntu.com/ubuntu|${UBUNTU_MIRROR}|g; \
s|http://security.ubuntu.com/ubuntu|${UBUNTU_MIRROR}|g" \
/etc/apt/sources.list \
&& printf '%s\n' \
'Acquire::Retries "5";' \
'Acquire::http::Pipeline-Depth "0";' \
'Acquire::http::No-Cache "true";' \
'Acquire::http::Timeout "60";' \
> /etc/apt/apt.conf.d/80-network-retries \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
bzip2 \
ca-certificates \
curl \
dnsutils \
ffmpeg \
git \
iproute2 \
iputils-ping \
less \
libcairo2 \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
net-tools \
openssh-client \
pkg-config \
poppler-utils \
procps \
unzip \
vim \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*
ARG MINICONDA_MIRROR=https://mirror.sysu.edu.cn/anaconda/miniconda
RUN set -eux; \
case "${TARGETARCH:-amd64}" in \
amd64) miniconda_arch="x86_64" ;; \
arm64) miniconda_arch="aarch64" ;; \
*) echo "Unsupported architecture: ${TARGETARCH}" >&2; exit 1 ;; \
esac; \
curl --fail --show-error --location \
--retry 10 \
--retry-all-errors \
--retry-delay 5 \
--connect-timeout 30 \
--speed-limit 1024 \
--speed-time 60 \
--continue-at - \
--output /tmp/miniconda.sh \
"${MINICONDA_MIRROR}/Miniconda3-latest-Linux-${miniconda_arch}.sh"; \
bash /tmp/miniconda.sh -b -p "${CONDA_DIR}"; \
rm -f /tmp/miniconda.sh; \
"${CONDA_DIR}/bin/conda" clean --all --yes
ENV PATH=/opt/conda/bin:${PATH}
COPY requirements.txt /tmp/requirements.txt
ARG CONDA_FORGE_CHANNEL=https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
ARG PIP_INDEX_URL=https://mirrors.bfsu.edu.cn/pypi/web/simple
ARG NODEJS_VERSION=24.19.0
RUN conda create --yes --name eval \
--override-channels \
--channel "${CONDA_FORGE_CHANNEL}" \
python=3.12.13 \
nodejs="${NODEJS_VERSION}" \
pip \
setuptools \
wheel \
&& conda clean --all --yes
RUN conda run --no-capture-output --name eval python -m pip install \
--no-cache-dir \
--retries 10 \
--timeout 120 \
--index-url "${PIP_INDEX_URL}" \
--requirement /tmp/requirements.txt \
&& rm -f /tmp/requirements.txt
RUN conda run --no-capture-output --name eval python -c \
"import cairosvg, cv2, decord, sys, torch, torchaudio, torchvision; \
assert sys.version_info[:3] == (3, 12, 13), sys.version; \
assert decord.__version__ == '0.6.0', decord.__version__; \
print('eval environment smoke test passed:', sys.executable)"
ENV CONDA_DEFAULT_ENV=eval \
PATH=/opt/conda/envs/eval/bin:/opt/conda/bin:${PATH}
ARG OPENCLAW_VERSION=2026.3.11
ARG NPM_REGISTRY=https://registry.npmmirror.com
RUN npm install --global \
--registry="${NPM_REGISTRY}" \
--fetch-retries=10 \
--fetch-retry-mintimeout=5000 \
--fetch-retry-maxtimeout=120000 \
"openclaw@${OPENCLAW_VERSION}" \
&& test "$(node --version)" = "v${NODEJS_VERSION}" \
&& openclaw -V | grep -F "${OPENCLAW_VERSION}" \
&& npm cache clean --force
# Embed the OpenClaw configuration directly in this Dockerfile.
COPY <<'OPENCLAW_CONFIG' /root/.openclaw/openclaw.json
{
"meta": {
"lastTouchedVersion": "2026.3.11",
"lastTouchedAt": "2026-03-19T16:47:51.573Z"
},
"env": {},
"wizard": {
"lastRunAt": "2026-03-19T16:47:51.568Z",
"lastRunVersion": "2026.3.11",
"lastRunCommand": "onboard",
"lastRunMode": "local"
},
"auth": {
"profiles": {
"openrouter:default": {
"provider": "openrouter",
"mode": "api_key"
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "openrouter/moonshotai/kimi-k2.5"
},
"models": {
"openrouter/auto": {
"alias": "OpenRouter"
},
"openrouter/anthropic/claude-sonnet-4.5": {},
"openrouter/anthropic/claude-sonnet-4.6": {},
"openrouter/moonshotai/kimi-k2.5": {}
},
"workspace": "/root"
}
},
"tools": {
"profile": "coding",
"web": {
"search": {
"enabled": true,
"provider": "brave",
"apiKey": "${BRAVE_API_KEY}"
}
}
},
"commands": {
"native": "auto",
"nativeSkills": "auto",
"restart": true,
"ownerDisplay": "raw"
},
"session": {
"dmScope": "per-channel-peer"
},
"gateway": {
"port": 18789,
"mode": "local",
"bind": "loopback",
"auth": {
"mode": "token",
"token": "1644ac1cdd271b99357051239aac71a2e707b16a9976c455"
},
"tailscale": {
"mode": "off",
"resetOnExit": false
},
"nodes": {
"denyCommands": [
"camera.snap",
"camera.clip",
"screen.record",
"contacts.add",
"calendar.add",
"reminders.add",
"sms.send"
]
}
}
}
OPENCLAW_CONFIG
RUN chmod 700 /root/.openclaw \
&& chmod 600 /root/.openclaw/openclaw.json \
&& python -c 'import json; p="/root/.openclaw/openclaw.json"; c=json.load(open(p, encoding="utf-8")); assert c["meta"]["lastTouchedVersion"] == "2026.3.11"; assert c["agents"]["defaults"]["model"]["primary"] == "openrouter/moonshotai/kimi-k2.5"; assert c["agents"]["defaults"]["workspace"] == "/root"; assert c["tools"]["web"]["search"]["apiKey"] == "${BRAVE_API_KEY}"; assert c["gateway"]["auth"]["token"] == "1644ac1cdd271b99357051239aac71a2e707b16a9976c455"; assert c["gateway"]["nodes"]["denyCommands"] == ["camera.snap", "camera.clip", "screen.record", "contacts.add", "calendar.add", "reminders.add", "sms.send"]; print("OpenClaw configuration validation passed")'
ENV HOME=/root \
OPENCLAW_STATE_DIR=/root/.openclaw \
OPENCLAW_CONFIG_PATH=/root/.openclaw/openclaw.json
WORKDIR /root
CMD ["/bin/bash"]
requirements.txt
aiofiles
aiohttp
anls>=0.0.2
annotated-doc
antlr4-python3-runtime
anyio
apted>=1.0.3
av
bert-score
cairosvg
certifi
click
colormath>=3.0.0
contourpy
cycler
datasets
decord>=0.6.0
distance>=0.1.3
editdistance>=0.8.1
einops
filelock
fastapi
fonttools
fsspec
ftfy
google-auth
google-genai
gradio
h11
hf-xet
httpcore
httpx
huggingface-hub
idna
imageio
iopath
ipdb
ipython
jieba>=0.42.1
jinja2
joblib
json-repair
kiwisolver
lazy-loader
levenshtein>=0.27.1
lpips
lxml>=6.0.2
markdown-it-py
markupsafe
math-verify
matplotlib
mdurl
mpmath
networkx
nltk
num2words
numpy
omegaconf>=2.4.0.dev4
openai
openai-clip
opencv-python
openpyxl
orjson
pandas
pdf2image>=1.17.0
pillow
polygon3>=3.0.9.1
portalocker
protobuf
psutil
pyarrow
pycocotools
pydantic
pydub
pygments
pylatexenc
pyparsing
python-dateutil
python-dotenv
python-multipart
pyyaml
qwen-vl-utils
regex
requests
rich
safetensors
scikit-image
scikit-learn
scipy
sentence-transformers>=2.0.0,<4.0.0
sentencepiece
shellingham
six
sty
sympy
tabulate
threadpoolctl
tiktoken
tifffile
timeout-decorator
timm
torch==2.7.0
torchaudio==2.7.0
torchmetrics
torchvision==0.22.0
tqdm
transformers>=4.40.0,<5.0.0
triton
typer
typing-extensions
uvicorn
validators
wcwidth
websockets
xlsxwriter
xxhash
zss>=1.2.0
rouge