Use Go 1.5, disable cgo

This commit is contained in:
Adrian Macneil 2015-11-30 18:42:50 -08:00
parent e2d338dca1
commit 456bee585c

View file

@ -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