Skip to content

Commit

Permalink
Updates to Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Waldemar Quevedo <wally@synadia.com>
  • Loading branch information
wallyqs committed Mar 22, 2019
1 parent 2de88bf commit 0029ebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/operator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM golang:1.11.0-alpine3.8 AS builder
FROM golang:1.12.1-alpine AS builder
WORKDIR $GOPATH/src/github.com/nats-io/nats-streaming-operator/
COPY . .
RUN apk add --update git
RUN CGO_ENABLED=0 go build -installsuffix cgo -o /nats-streaming-operator ./cmd/nats-streaming-operator/main.go
RUN CGO_ENABLED=0 GO111MODULE=on go build -installsuffix cgo -o /nats-streaming-operator ./cmd/nats-streaming-operator/main.go

FROM alpine:3.8
COPY --from=builder /nats-streaming-operator /usr/local/bin/nats-streaming-operator
Expand Down

0 comments on commit 0029ebf

Please sign in to comment.