-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
14 additions
and
12 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,19 +1,16 @@ | ||
FROM golang:1.11 AS builder | ||
FROM golang:1.16-alpine3.13 AS builder | ||
|
||
WORKDIR /go/src/github.com/sapcc/kuberntes-oomkill-exporter | ||
ENV GO111MODULE=on \ | ||
CGOENABLED=0 | ||
ADD go.mod go.sum ./ | ||
RUN go mod download | ||
ADD cache/main.go . | ||
RUN go build -v -o /dev/null | ||
ADD . . | ||
RUN go build -v -o /kubernetes-oomkill-exporter | ||
RUN go test -v | ||
RUN go vet | ||
RUN CGOENABLED=0 go build -v -o /kubernetes-oomkill-exporter | ||
|
||
FROM alpine:3.8 | ||
FROM alpine:3.13 | ||
LABEL maintainer="[email protected]" | ||
LABEL source_repository="https://github.com/sapcc/kubernetes-oomkill-exporter" | ||
|
||
RUN apk --no-cache add ca-certificates | ||
COPY --from=builder /kubernetes-oomkill-exporter /kubernetes-oomkill-exporter | ||
|
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
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
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