All checks were successful
CI / Build swarm-cli docker images (push) Successful in 15s
13 lines
426 B
Docker
13 lines
426 B
Docker
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 --chown=ethswarm:ethswarm config.nu /var/lib/ethswarm/.config/nushell/config.nu
|
|
ENTRYPOINT ["/usr/bin/nu"]
|
|
|
|
|