commit
b3b6568777
14
Dockerfile
Normal file
14
Dockerfile
Normal 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"]
|
Loading…
Reference in New Issue
Block a user