2026-03-08 17:57:46 -07:00
|
|
|
# syntax=docker/dockerfile:1.7
|
|
|
|
|
|
2026-03-12 15:09:23 +03:00
|
|
|
FROM node:24-bookworm-slim@sha256:b4687aef2571c632a1953695ce4d61d6462a7eda471fe6e272eebf0418f276ba
|
2026-01-11 10:20:50 +00:00
|
|
|
|
2026-03-08 17:57:46 -07:00
|
|
|
RUN --mount=type=cache,id=openclaw-install-sh-smoke-apt-cache,target=/var/cache/apt,sharing=locked \
|
|
|
|
|
--mount=type=cache,id=openclaw-install-sh-smoke-apt-lists,target=/var/lib/apt,sharing=locked \
|
|
|
|
|
set -eux; \
|
2026-01-12 22:21:50 +00:00
|
|
|
for attempt in 1 2 3; do \
|
|
|
|
|
if apt-get update -o Acquire::Retries=3; then break; fi; \
|
|
|
|
|
echo "apt-get update failed (attempt ${attempt})" >&2; \
|
|
|
|
|
if [ "${attempt}" -eq 3 ]; then exit 1; fi; \
|
|
|
|
|
sleep 3; \
|
|
|
|
|
done; \
|
2026-03-13 23:23:02 +00:00
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 upgrade -y --no-install-recommends; \
|
2026-01-12 22:21:50 +00:00
|
|
|
apt-get -o Acquire::Retries=3 install -y --no-install-recommends \
|
2026-01-11 10:20:50 +00:00
|
|
|
bash \
|
|
|
|
|
ca-certificates \
|
|
|
|
|
curl \
|
2026-01-12 00:17:02 +00:00
|
|
|
git \
|
2026-02-21 20:17:56 +01:00
|
|
|
g++ \
|
|
|
|
|
make \
|
|
|
|
|
python3 \
|
2026-03-08 17:57:46 -07:00
|
|
|
sudo
|
2026-01-11 10:20:50 +00:00
|
|
|
|
2026-03-02 11:01:56 +00:00
|
|
|
COPY install-sh-common/cli-verify.sh /usr/local/install-sh-common/cli-verify.sh
|
2026-03-08 19:10:48 +03:00
|
|
|
COPY install-sh-common/version-parse.sh /usr/local/install-sh-common/version-parse.sh
|
2026-03-08 16:07:04 -07:00
|
|
|
COPY --chmod=755 install-sh-smoke/run.sh /usr/local/bin/openclaw-install-smoke
|
2026-01-11 10:20:50 +00:00
|
|
|
|
2026-01-30 03:15:10 +01:00
|
|
|
ENTRYPOINT ["/usr/local/bin/openclaw-install-smoke"]
|