dbmate/Dockerfile

25 lines
467 B
Text
Raw Normal View History

2016-05-21 19:20:42 -07:00
FROM golang:1.6.2
2015-11-25 10:57:58 -08:00
2015-12-01 17:36:23 -08:00
ENV CGO_ENABLED 1
2015-11-25 10:57:58 -08:00
2015-12-01 17:36:23 -08:00
# i386 cross compilation
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y libc6-dev-i386 && \
rm -rf /var/lib/apt/lists/*
# development dependencies
2015-11-25 10:57:58 -08:00
RUN go get \
github.com/golang/lint/golint \
2016-05-21 19:03:21 -07:00
github.com/kisielk/errcheck
2015-11-25 10:57:58 -08:00
# copy source files
2015-12-03 00:17:37 -08:00
COPY . $GOPATH/src/github.com/amacneil/dbmate
WORKDIR $GOPATH/src/github.com/amacneil/dbmate
2015-11-25 10:57:58 -08:00
# 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