dbmate/Dockerfile

24 lines
533 B
Text
Raw Normal View History

2015-11-30 18:42:50 -08:00
FROM alpine:edge
2015-11-25 10:57:58 -08:00
ENV GOPATH /go
ENV PATH /go/bin:$PATH
2015-11-30 18:42:50 -08:00
ENV CGO_ENABLED 0
2015-11-25 10:57:58 -08:00
# install build dependencies
2015-11-30 18:42:50 -08:00
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk add -U --no-progress go go-tools git ca-certificates
2015-11-25 10:57:58 -08:00
RUN go get \
github.com/golang/lint/golint \
2015-11-27 14:27:44 -08:00
github.com/kisielk/errcheck \
2015-11-25 10:57:58 -08:00
golang.org/x/tools/cmd/vet
# copy source files
COPY . /go/src/github.com/adrianmacneil/dbmate
WORKDIR /go/src/github.com/adrianmacneil/dbmate
# build
2015-11-30 18:42:50 -08:00
RUN go get -d -t -v
2015-11-25 10:57:58 -08:00
RUN go install -v
CMD dbmate