From 4e6974b77e8536860522dc1934549862559b37fd Mon Sep 17 00:00:00 2001 From: Giuseppe Valente Date: Wed, 22 Jan 2020 10:32:12 -0800 Subject: [PATCH] cmd/ocprometheus: add Dockerfile Change-Id: Iac5fe8e19bb8e694554f0fa5fbbd926a31444473 --- cmd/ocprometheus/Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 cmd/ocprometheus/Dockerfile diff --git a/cmd/ocprometheus/Dockerfile b/cmd/ocprometheus/Dockerfile new file mode 100644 index 0000000..e9460ea --- /dev/null +++ b/cmd/ocprometheus/Dockerfile @@ -0,0 +1,13 @@ +# Copyright (c) 2020 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the COPYING file. + +FROM golang:1.13.6 + +RUN mkdir -p /go/src/github.com/aristanetworks/goarista/cmd +WORKDIR /go/src/github.com/aristanetworks/goarista +COPY ./ . +RUN go get -d ./cmd/ocprometheus/... \ + && go install ./cmd/ocprometheus + +ENTRYPOINT ["/go/bin/ocprometheus"]