From 397fade395857560466db86a669ebb0a25b87deb Mon Sep 17 00:00:00 2001 From: Sam Song Date: Wed, 29 Jul 2020 22:42:20 -0700 Subject: [PATCH] upgrade base golang docker image --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8a506d6..cb37232 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # From https://github.com/jahkeup/updater53/blob/master/Dockerfile ############################################################################### -FROM golang:1.8 as builder +FROM golang:1.14.6-alpine3.12 as builder WORKDIR /go/src/github.com/SumoLogic/docker-logging-driver COPY . . @@ -10,7 +10,9 @@ ARG GOOS=linux ARG GOARCH=amd64 ARG GOARM= -RUN go get -d -v ./... +RUN apk add --no-cache git mercurial \ + && go get -d -v ./... \ + && apk del git mercurial RUN CGO_ENABLED=0 go build -v -a -installsuffix cgo -o docker-logging-driver ###############################################################################