mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2026-02-02 09:25:07 +01:00
Use Go 1.5, disable cgo
This commit is contained in:
parent
e2d338dca1
commit
456bee585c
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue