Initial dockerfile

This commit is contained in:
Vaibhav Bhembre 2016-01-06 14:07:02 -05:00
parent 9cda67d44a
commit 3d4e949f49
1 changed files with 16 additions and 0 deletions

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM ubuntu:14.04
MAINTAINER Vaibhav Bhembre <vaibhav@digitalocean.com>
ENV GOPATH /go
ENV APPLOC $GOPATH/src/github.com/digitalocean/ceph_exporter
RUN apt-get update && \
apt-get install build-essential
apt-get install -y librados-dev librbd-dev
WORKDIR $APPLOC
RUN go get -d && \
go build -o /bin/ceph_exporter && \
rm -rf $GOPATH
ENTRYPOINT ["/bin/ceph_exporter"