FROM scratch

ADD ./kafkalogsforwarder /kafkalogsforwarder
ADD https://papertrailapp.com/tools/papertrail-bundle.pem /papertrail-bundle.pem

ENTRYPOINT ["/kafkalogsforwarder"]

#BUILD: docker run --rm -v $PWD:/go/src/github.com/UnityTech/kafkalogsforwarder -w /go/src/github.com/UnityTech/kafkalogsforwarder golang:latest /bin/bash -c "go get github.com/golang/dep/cmd/dep && dep ensure -v && go build -a -ldflags '-s' -tags netgo -installsuffix netgo -v -o $(basename $PWD); ldd $(basename $PWD)"; docker build -t erno/kafkalogsforwarder .
