File: Dockerfile

package info (click to toggle)
golang-github-newrelic-go-agent 3.15.2-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 8,356 kB
  • sloc: sh: 65; makefile: 6
file content (22 lines) | stat: -rw-r--r-- 618 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2020 New Relic Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

# This Dockerfile builds a docker image which prints utilization information.
# It is designed to be build from the top level (go-agent directory).
#
# To build:
#   docker build -t utilization -f internal/tools/utilization/Dockerfile .
#
# Then to run:
#   docker run utilization
#

FROM golang:1

ENV GOPATH /tmp/gopath

RUN mkdir -p $GOPATH/src/github.com/newrelic/go-agent/

COPY . $GOPATH/src/github.com/newrelic/go-agent/

CMD go run ${GOPATH}/src/github.com/newrelic/go-agent/internal/tools/utilization/main.go