dbmate/Dockerfile
2018-01-07 13:15:57 -08:00

18 lines
367 B
Docker

FROM golang:1.9
# required to force cgo (for sqlite driver) with cross compile
ENV CGO_ENABLED 1
# development dependencies
RUN go get \
github.com/golang/lint/golint \
github.com/kisielk/errcheck
# copy source files
COPY . $GOPATH/src/github.com/amacneil/dbmate
WORKDIR $GOPATH/src/github.com/amacneil/dbmate
# build
RUN go install -v ./cmd/dbmate
CMD dbmate