From e4991488bc4324cbbedf840b4e8c3511717c2316 Mon Sep 17 00:00:00 2001 From: Jaime Soriano Pastor Date: Tue, 2 Jun 2020 21:13:47 +0200 Subject: [PATCH] Fix docker image for stan --- 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