github.com/lulzWill/go-agent@v2.1.2+incompatible/internal/tools/utilization/Dockerfile (about) 1 # This Dockerfile builds a docker image which prints utilization information. 2 # It is designed to be build from the top level (go-agent directory). 3 # 4 # To build: 5 # docker build -t utilization -f internal/tools/utilization/Dockerfile . 6 # 7 # Then to run: 8 # docker run utilization 9 # 10 11 FROM golang:1.7 12 13 ENV GOPATH /tmp/gopath 14 15 RUN mkdir -p $GOPATH/src/github.com/lulzWill/go-agent/ 16 17 COPY . $GOPATH/src/github.com/lulzWill/go-agent/ 18 19 CMD go run ${GOPATH}/src/github.com/lulzWill/go-agent/internal/tools/utilization/main.go