Use dev scripts for making docker image

This commit is contained in:
Mike Farah 2018-04-03 09:45:30 +10:00
parent c5a45ba7d5
commit 6053c8c136

View File

@ -1,14 +1,11 @@
FROM golang:1.9 as builder
RUN go get -u github.com/kardianos/govendor
WORKDIR /go/src/mikefarah/yq
COPY . /go/src/mikefarah/yq
RUN govendor sync
RUN CGO_ENABLED=0 go build
RUN scripts/devtools.sh
RUN CGO_ENABLED=0 make local build
# Choose alpine as a base image to make this useful for CI, as many
# CI tools expect an interactive shell inside the container