-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
67 lines (51 loc) · 1.47 KB
/
Dockerfile
File metadata and controls
67 lines (51 loc) · 1.47 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
57
58
59
60
61
62
63
64
65
66
67
FROM rust:slim-bookworm AS zeroclaw_builder
ARG ZEROCLAW_VERSION
RUN <<EOR
set -eu
apt update
apt install -y --no-install-recommends build-essential ca-certificates git pkg-config libssl-dev
rm -rf /var/lib/apt/lists/*
EOR
RUN <<EOR
set -eu
if [ -z "${ZEROCLAW_VERSION:-}" ]; then
echo "ZEROCLAW_VERSION build arg is required" >&2
exit 1
fi
cargo install \
--locked \
--git https://github.com/zeroclaw-labs/zeroclaw.git \
--tag "${ZEROCLAW_VERSION}" \
zeroclaw
EOR
FROM debian:13-slim
RUN <<EOR
set -eu
apt update
apt install -y --no-install-recommends curl git build-essential ca-certificates zsh tini
rm -rf /var/lib/apt/lists/*
EOR
RUN <<EOR
touch /.dockerenv
CI=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> /root/.bashrc
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"' >> /root/.bashrc
EOR
ENV PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:${PATH}"
RUN <<EOR
brew install agent-browser
agent-browser install
EOR
RUN mkdir /zeroclaw-data
# This env tells zeroclaw to look in this directory
# ZEROCLAW_WORKSPACE/.zeroclaw -> config.toml
# ZEROCLAW_WORKSPACE/workspace -> workspace/
#
ENV ZEROCLAW_WORKSPACE=/zeroclaw-data/workspace
ENV SHELL=/usr/bin/zsh
ENV HOME=/zeroclaw-data
WORKDIR /zeroclaw-data
COPY --from=zeroclaw_builder /usr/local/cargo/bin/zeroclaw /usr/local/bin/zeroclaw
EXPOSE 42617
ENTRYPOINT ["tini", "--"]
CMD ["zeroclaw", "daemon"]