added swarm-cli image
All checks were successful
CI / Build swarm-cli docker images (push) Successful in 8s

This commit is contained in:
2025-08-11 20:32:32 +08:00
parent 41a803e4c0
commit 9af862d56c
3 changed files with 93 additions and 0 deletions

12
swarm-cli/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM alpine:3.22
RUN --mount=type=cache,target=/var/cache/apk apk update
RUN --mount=type=cache,target=/var/cache/apk apk add nodejs npm nushell curl
RUN npm install --global @ethersphere/swarm-cli
RUN addgroup -S ethswarm
RUN adduser -D -S -h /var/lib/ethswarm -s /usr/bin/nu -G ethswarm ethswarm
USER ethswarm
ADD config.nu /var/lib/ethswarm/.config/nushell/config.nu
ENTRYPOINT ["/usr/bin/nu"]