diff --git a/Dockerfile b/Dockerfile index 7620c14..ab24793 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ -FROM alpine:3.2 +FROM alpine:edge ENV GOPATH /go ENV PATH /go/bin:$PATH +ENV CGO_ENABLED 0 # install build dependencies -RUN apk add -U --no-progress alpine-sdk go +RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \ + apk add -U --no-progress go go-tools git ca-certificates RUN go get \ github.com/golang/lint/golint \ github.com/kisielk/errcheck \ @@ -15,7 +17,7 @@ COPY . /go/src/github.com/adrianmacneil/dbmate WORKDIR /go/src/github.com/adrianmacneil/dbmate # build -RUN go get -d -t +RUN go get -d -t -v RUN go install -v CMD dbmate