diff --git a/Dockerfile b/Dockerfile index 42d483c..8e90a9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ ############################ # STEP 1 build executable binary ############################ -FROM golang:alpine as builder +FROM golang:1.13-alpine as builder # Install git + SSL ca certificates. # Git is required for fetching the dependencies. @@ -15,10 +15,6 @@ RUN adduser -D -g '' appuser WORKDIR /go/src/github.com/andig/gravo -ENV GO111MODULE on -COPY go.* . -RUN go mod download - COPY . . RUN make build diff --git a/tmpl.Dockerfile b/tmpl.Dockerfile index ce2e003..5ff0d94 100644 --- a/tmpl.Dockerfile +++ b/tmpl.Dockerfile @@ -1,7 +1,7 @@ ############################ # STEP 1 build executable binary ############################ -FROM golang:alpine as builder +FROM golang:1.13-alpine as builder # Install git + SSL ca certificates. # Git is required for fetching the dependencies. @@ -15,10 +15,6 @@ RUN adduser -D -g '' appuser WORKDIR /go/src/github.com/andig/gravo -ENV GO111MODULE on -COPY go.* . -RUN go mod download - COPY . . RUN GOARCH={{ .GoARCH }} GOARM={{ .GoARM }} make build