dbmate/Dockerfile
2015-11-27 14:27:44 -08:00

21 lines
405 B
Docker

FROM alpine:3.2
ENV GOPATH /go
ENV PATH /go/bin:$PATH
# install build dependencies
RUN apk add -U --no-progress alpine-sdk go
RUN go get \
github.com/golang/lint/golint \
github.com/kisielk/errcheck \
golang.org/x/tools/cmd/vet
# copy source files
COPY . /go/src/github.com/adrianmacneil/dbmate
WORKDIR /go/src/github.com/adrianmacneil/dbmate
# build
RUN go get -d -t
RUN go install -v
CMD dbmate