Merge pull request #18 from jangrewe/master

add Dockefile
This commit is contained in:
Bart Vercoulen 2018-11-06 13:53:47 +01:00 committed by GitHub
commit b3b6568777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM golang:1.8
ADD . /go/src/github.com/kumina/postfix_exporter
WORKDIR /go/src/github.com/kumina/postfix_exporter
RUN apt-get update -qq && apt-get install -qqy \
build-essential \
libsystemd-dev
RUN go get -v ./...
RUN go build
FROM debian:latest
EXPOSE 9154
WORKDIR /
COPY --from=0 /go/src/github.com/kumina/postfix_exporter/postfix_exporter .
ENTRYPOINT ["/postfix_exporter"]