From 96b4e54179642c04547c5b99ec207e6eb9f067eb Mon Sep 17 00:00:00 2001 From: J0WI Date: Tue, 1 Sep 2020 01:09:29 +0200 Subject: [PATCH] Update dockerlib image --- dockerlib/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dockerlib/Dockerfile b/dockerlib/Dockerfile index b3634acea..75e986e3c 100644 --- a/dockerlib/Dockerfile +++ b/dockerlib/Dockerfile @@ -1,9 +1,10 @@ -FROM golang:1.9.2-stretch as builder +FROM golang:1.15-alpine as builder COPY . /go/src/github.com/influxdata/influxdata-docker/dockerlib -RUN set -xe && \ - go get -d github.com/influxdata/influxdata-docker/dockerlib && \ +RUN set -xe; \ + apk add --no-cache git; \ + go get -d github.com/influxdata/influxdata-docker/dockerlib; \ go install github.com/influxdata/influxdata-docker/dockerlib -FROM buildpack-deps:stretch-scm +FROM alpine COPY --from=builder /go/bin/dockerlib /usr/bin/dockerlib ENTRYPOINT ["/usr/bin/dockerlib"]