Skip to content

Commit

Permalink
Merge pull request kumina#9 from jangrewe/master
Browse files Browse the repository at this point in the history
add Dockerfile
  • Loading branch information
BartVerc authored Nov 6, 2018
2 parents 14694ed + 8ac4e2e commit 859caa1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:1.8-alpine
ADD . /go/src/github.com/kumina/dovecot_exporter
WORKDIR /go/src/github.com/kumina/dovecot_exporter
RUN apk add --no-cache git && \
go get -v ./... && \
go build

FROM alpine:latest
EXPOSE 9166
WORKDIR /
COPY --from=0 /go/src/github.com/kumina/dovecot_exporter/dovecot_exporter .
ENTRYPOINT ["/dovecot_exporter"]

0 comments on commit 859caa1

Please sign in to comment.