Commit 8ac4e2e5 authored by Jan Grewe's avatar Jan Grewe
Browse files

add Dockerfile

parent 14694eda
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"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment