NATS Command line utility (natscli), devops CI/CD runner base image.
278
FROM alpine:3.18.2 as builder
ENV NATSCLI_VERSION 0.0.35
RUN sed -i 's/https/http/g' /etc/apk/repositories && apk --no-cache add bash curl libarchive-tools
RUN curl -k -L nats.zip https://github.com/nats-io/natscli/releases/download/v${NATSCLI_VERSION}/nats-${NATSCLI_VERSION}-linux-amd64.zip | \
bsdtar -xvf- && mv nats-${NATSCLI_VERSION}-linux-amd64/nats /nats
FROM alpine:3.18.2
RUN sed -i 's/https/http/g' /etc/apk/repositories && apk --no-cache add bash
COPY --from=builder /nats /usr/local/bin/nats
RUN chmod +x /usr/local/bin/nats
docker run -itd --name natscli yanmouxie/natscli:latest
Content type
Image
Digest
sha256:3835bc6b7…
Size
19 MB
Last updated
over 3 years ago
docker pull yanmouxie/natscli