mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
use the natscli repo instead of jetstream
Signed-off-by: R.I.Pienaar <rip@devco.net>
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
FROM golang:1.14-alpine AS builder
|
||||
|
||||
RUN apk add --update git
|
||||
RUN go get github.com/nats-io/jetstream/nats
|
||||
RUN mkdir -p src/github.com/nats-io && \
|
||||
cd src/github.com/nats-io/ && \
|
||||
git clone https://github.com/nats-io/natscli.git && \
|
||||
cd natscli && \
|
||||
go build -o /nats
|
||||
|
||||
RUN go get github.com/nats-io/nsc
|
||||
|
||||
FROM alpine:latest
|
||||
@@ -10,7 +15,7 @@ RUN apk add --update ca-certificates && mkdir -p /nats/bin && mkdir /nats/conf
|
||||
|
||||
COPY docker/nats-server.conf /nats/conf/nats-server.conf
|
||||
COPY nats-server /bin/nats-server
|
||||
COPY --from=builder /go/bin/nats /bin/nats
|
||||
COPY --from=builder /nats /bin/nats
|
||||
COPY --from=builder /go/bin/nsc /bin/nsc
|
||||
|
||||
EXPOSE 4222 8222 6222 5222
|
||||
|
||||
Reference in New Issue
Block a user