forked from jgarzik/botmaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.botenv
More file actions
56 lines (49 loc) · 1.71 KB
/
Dockerfile.botenv
File metadata and controls
56 lines (49 loc) · 1.71 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
48
49
50
51
52
53
54
55
56
# Extended base image for bot containers with build tools and utilities
# Build: docker compose build botenv
# Usage: Automatically used by botmaker when spawning bot containers
ARG BASE_IMAGE=ghcr.io/openclaw/openclaw:latest
FROM ${BASE_IMAGE}
# Switch to root for package installation
USER root
# Install build tools, languages, and utilities in single layer for cache efficiency
RUN apt-get update && apt-get install -y --no-install-recommends \
# Build essentials
build-essential \
git ca-certificates curl \
pkg-config cmake ninja-build \
autoconf automake libtool meson \
# Debugging
gdb strace \
# Python
python3 python3-venv python3-pip python3-dev \
# Dev libraries
libssl-dev libffi-dev \
zlib1g-dev libbz2-dev liblzma-dev libreadline-dev libsqlite3-dev \
libxml2-dev libxslt-dev \
libcurl4-openssl-dev \
libncurses-dev \
libpcre2-dev \
libprotobuf-dev protobuf-compiler \
# CLI utilities
jq ripgrep fd-find less \
unzip zip xz-utils zstd \
wget tree file patch \
openssh-client rsync \
# HDL/FPGA tools
yosys ghdl \
# Process/network tools
procps lsof \
iproute2 netcat-openbsd dnsutils \
&& rm -rf /var/lib/apt/lists/*
# Install Rust toolchain via rustup (APT packages are severely outdated)
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y --profile minimal --default-toolchain stable \
&& rustc --version \
&& chmod -R a+w $RUSTUP_HOME $CARGO_HOME
# Make openclaw CLI available on PATH
RUN ln -s /app/openclaw.mjs /usr/local/bin/openclaw
# Switch back to non-root user
USER node