From 605c03395346384d26e039d6d8007f37b2dd4ae3 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Mon, 12 Sep 2016 11:26:36 -0700 Subject: [PATCH] cleanup mop Signed-off-by: Jess Frazelle --- mop/Dockerfile | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/mop/Dockerfile b/mop/Dockerfile index d2fb869..e82b618 100644 --- a/mop/Dockerfile +++ b/mop/Dockerfile @@ -1,12 +1,32 @@ # Run mop-tracker in a container # # docker run -it --rm \ -# -v ~/.moprc:/root/.moprc \ -# --name mop -# freebirdljj/mop -FROM golang:latest -MAINTAINER FreeBirdLjj +# -v ~/.moprc:/root/.moprc \ +# --name mop \ +# r.j3ss.co/mop +# +FROM alpine:edge -RUN go get github.com/mop-tracker/mop && go install -x github.com/mop-tracker/mop/cmd/mop && rm -fr $GOPATH/src/github.com +RUN apk --no-cache add \ + ca-certificates -ENTRYPOINT ["mop"] +ENV PATH /go/bin:/usr/local/go/bin:$PATH +ENV GOPATH /go + +RUN buildDeps=' \ + go \ + git \ + gcc \ + g++ \ + libc-dev \ + libgcc \ + ' \ + set -x \ + && apk --no-cache add $buildDeps \ + && go get github.com/mop-tracker/mop/cmd/mop \ + && mv /go/bin/mop /usr/bin/mop \ + && apk del $buildDeps \ + && rm -rf /go \ + && echo "Build complete." + +ENTRYPOINT [ "mop" ]