mirror of
https://github.com/openclaw/openclaw.ai.git
synced 2026-08-25 12:39:35 -04:00
28 lines
780 B
Docker
28 lines
780 B
Docker
FROM ubuntu:24.04
|
|
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
bash \
|
|
ca-certificates \
|
|
curl \
|
|
sudo \
|
|
tzdata \
|
|
&& 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 scripts/docker/install-sh-nonroot/run.sh /usr/local/bin/clawdbot-install-nonroot
|
|
COPY public/install.sh /opt/clawdbot-install.sh
|
|
COPY public/install-cli.sh /opt/clawdbot-install-cli.sh
|
|
RUN sudo chmod +x /usr/local/bin/clawdbot-install-nonroot \
|
|
&& sudo chmod a+r /opt/clawdbot-install.sh /opt/clawdbot-install-cli.sh
|
|
|
|
ENTRYPOINT ["/usr/local/bin/clawdbot-install-nonroot"]
|