Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
Dockerfile: Use golang:1.11 instead of 1.10.1 (fixes gree-gorey#6)
Browse files Browse the repository at this point in the history
Dockerfile: Install bash
  • Loading branch information
nanawel committed Mar 22, 2020
1 parent 74d2e38 commit 280b052
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM golang:1.10.1
FROM golang:1.11
RUN go get -d -v github.com/gree-gorey/bash-exporter/cmd/bash-exporter
WORKDIR /go/src/github.com/gree-gorey/bash-exporter/cmd/bash-exporter
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o bash-exporter .

FROM alpine:3.7
WORKDIR /root/
RUN apk update && apk add bash
COPY --from=0 /go/src/github.com/gree-gorey/bash-exporter/cmd/bash-exporter/bash-exporter .
COPY ./examples/* /scripts/
CMD ["./bash-exporter"]

0 comments on commit 280b052

Please sign in to comment.