mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Comprehensive rename of all openclaw references to hanzo-bot equivalents: - Package: openclaw → @hanzo/bot - Binary: openclaw → hanzo-bot - Types: OpenClaw* → Bot* - Env vars: OPENCLAW_* → BOT_* - Android: ai.openclaw.android → ai.hanzo.bot.android - iOS/macOS: ai.openclaw.* → ai.hanzo.* - Swift modules: OpenClaw* → Bot* - Plugins: openclaw.plugin.json → bot.plugin.json - Paths: .openclaw/ → .hanzo/bot/ - URLs: github.com/openclaw → github.com/hanzoai
33 lines
856 B
Docker
33 lines
856 B
Docker
FROM ubuntu:24.04@sha256:cd1dba651b3080c3686ecf4e3c4220f026b521fb76978881737d24f200828b2b
|
|
|
|
RUN set -eux; \
|
|
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; \
|
|
apt-get -o Acquire::Retries=3 install -y --no-install-recommends \
|
|
bash \
|
|
ca-certificates \
|
|
curl \
|
|
g++ \
|
|
make \
|
|
python3 \
|
|
sudo \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN useradd -m -s /bin/bash app \
|
|
&& echo "app ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/app
|
|
|
|
USER app
|
|
WORKDIR /home/app
|
|
|
|
ENV NPM_CONFIG_FUND=false
|
|
ENV NPM_CONFIG_AUDIT=false
|
|
|
|
COPY run.sh /usr/local/bin/bot-install-nonroot
|
|
RUN sudo chmod +x /usr/local/bin/bot-install-nonroot
|
|
|
|
ENTRYPOINT ["/usr/local/bin/bot-install-nonroot"]
|