Fixed docker timeout - simplify docker builds

This commit is contained in:
Mike Farah 2021-09-20 11:57:05 +10:00
parent 222bfd3d17
commit 111c1a0e4a

View File

@ -2,13 +2,11 @@ FROM golang:1.15 as builder
WORKDIR /go/src/mikefarah/yq WORKDIR /go/src/mikefarah/yq
# cache devtools
COPY ./scripts/devtools.sh /go/src/mikefarah/yq/scripts/devtools.sh
RUN ./scripts/devtools.sh
COPY . /go/src/mikefarah/yq COPY . /go/src/mikefarah/yq
RUN CGO_ENABLED=0 make local build RUN CGO_ENABLED=0 go build .
RUN ./scripts/test.sh
RUN ./scripts/acceptance.sh
# Choose alpine as a base image to make this useful for CI, as many # Choose alpine as a base image to make this useful for CI, as many
# CI tools expect an interactive shell inside the container # CI tools expect an interactive shell inside the container