From 8b6c4a75410db3ea706a33d27a2f6d356fece408 Mon Sep 17 00:00:00 2001 From: Jaime Soriano Pastor Date: Wed, 3 Jun 2020 10:18:36 +0200 Subject: [PATCH] Fix docker image building for stan (#18913) (cherry picked from commit a2a68907a86eeb18c6a063b49aa533b67912cb9b) --- x-pack/metricbeat/module/stan/_meta/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/metricbeat/module/stan/_meta/Dockerfile b/x-pack/metricbeat/module/stan/_meta/Dockerfile index 237ecb40040..030427a7c00 100644 --- a/x-pack/metricbeat/module/stan/_meta/Dockerfile +++ b/x-pack/metricbeat/module/stan/_meta/Dockerfile @@ -2,9 +2,9 @@ ARG STAN_VERSION=0.15.1 FROM nats-streaming:$STAN_VERSION # build stage -FROM golang:1.13-alpine AS build-env -RUN apk --no-cache add build-base git bzr mercurial gcc -RUN cd src && go get github.com/nats-io/stan.go/ +FROM golang:1.13-alpine3.11 AS build-env +RUN apk --no-cache add build-base git mercurial gcc +RUN cd src && go get -d github.com/nats-io/stan.go/ RUN cd src/github.com/nats-io/stan.go/examples/stan-bench && git checkout tags/v0.5.2 && go build . # create an enhanced container with nc command available since nats is based