-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile golang to match go.mod
- Loading branch information
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
FROM golang:1.13-alpine3.10 AS builder | ||
FROM golang:1.16-alpine3.14 AS builder | ||
WORKDIR $GOPATH/src/github.com/nats-io/nats-operator/ | ||
RUN apk add --update git | ||
COPY . . | ||
RUN go get ./... | ||
RUN CGO_ENABLED=0 go build -o /nats-pod-bootconfig ./cmd/bootconfig/main.go | ||
|
||
FROM alpine:3.8 | ||
FROM alpine:3.14 | ||
COPY --from=builder /nats-pod-bootconfig /usr/local/bin/nats-pod-bootconfig | ||
CMD ["nats-pod-bootconfig"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
FROM golang:1.15.6-alpine AS builder | ||
FROM golang:1.16-alpine3.14 AS builder | ||
WORKDIR $GOPATH/src/github.com/nats-io/nats-operator/ | ||
RUN apk add --update git | ||
COPY . . | ||
RUN go get ./... | ||
RUN CGO_ENABLED=0 go build -ldflags "-X github.com/nats-io/nats-operator/version.GitSHA=`git rev-parse --short HEAD`" -installsuffix cgo -o /nats-operator ./cmd/operator/main.go | ||
|
||
FROM alpine:3.12 | ||
FROM alpine:3.14 | ||
COPY --from=builder /nats-operator /usr/local/bin/nats-operator | ||
CMD ["nats-operator"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
FROM golang:1.13-alpine3.10 AS builder | ||
FROM golang:1.16-alpine3.14 AS builder | ||
WORKDIR $GOPATH/src/github.com/nats-io/nats-operator/ | ||
RUN apk add --update git | ||
COPY . . | ||
RUN go get ./... | ||
RUN CGO_ENABLED=0 go build -ldflags "-X github.com/nats-io/nats-operator/version.GitSHA=`git rev-parse --short HEAD`" -installsuffix cgo -o /nats-server-config-reloader ./cmd/reloader/main.go | ||
|
||
FROM alpine:3.8 | ||
FROM alpine:3.14 | ||
COPY --from=builder /nats-server-config-reloader /usr/local/bin/nats-server-config-reloader | ||
CMD ["nats-server-config-reloader"] |