Skip to content

Commit

Permalink
Merge pull request #36 from SumoLogic/ssong-upgrade-golang-image
Browse files Browse the repository at this point in the history
upgrade base golang docker image
  • Loading branch information
samjsong authored Jul 30, 2020
2 parents c8ee65d + 397fade commit 70f8e93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 . .
Expand All @@ -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

###############################################################################
Expand Down

0 comments on commit 70f8e93

Please sign in to comment.