mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
chore: harden installer and add smoke ci
This commit is contained in:
23
scripts/docker/install-sh-nonroot/Dockerfile
Normal file
23
scripts/docker/install-sh-nonroot/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM ubuntu:24.04
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
bash \
|
||||
ca-certificates \
|
||||
curl \
|
||||
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/clawdbot-install-nonroot
|
||||
RUN sudo chmod +x /usr/local/bin/clawdbot-install-nonroot
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/clawdbot-install-nonroot"]
|
||||
Reference in New Issue
Block a user