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
1 parent
ddbea80
commit e0822cb
Showing
1 changed file
with
3 additions
and
4 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,16 +1,15 @@ | ||
FROM golang:1.10.3-alpine3.7 as builder | ||
RUN \ | ||
apk update && \ | ||
apk add --no-cache git ca-certificates make && \ | ||
cd / && \ | ||
apk update && \ | ||
apk add --no-cache git ca-certificates make tzdata && \ | ||
git clone https://github.com/inCaller/prometheus_bot && \ | ||
cd prometheus_bot && \ | ||
go get -d -v && \ | ||
CGO_ENABLED=0 GOOS=linux go build -v -a -installsuffix cgo -o prometheus_bot | ||
|
||
|
||
FROM alpine:3.7 | ||
COPY --from=builder /prometheus_bot/prometheus_bot / | ||
RUN apk add --no-cache ca-certificates | ||
RUN apk add --no-cache ca-certificates tzdata | ||
EXPOSE 9087 | ||
ENTRYPOINT ["/prometheus_bot"] |