ingress-nginx-helm/vendor/github.com/ncabatoff/process-exporter/Dockerfile
Manuel Alejandro de Brito Fontes 9278f0cad2
Update metric dependencies (#5023)
2020-02-06 09:50:13 -03:00

21 lines
715 B
Docker

# Start from a Debian image with the latest version of Go installed
# and a workspace (GOPATH) configured at /go.
FROM golang:1.12 AS build
#RUN curl -L -s https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep
#RUN chmod +x $GOPATH/bin/dep
WORKDIR /go/src/github.com/ncabatoff/process-exporter
ADD . .
#RUN dep ensure
# Build the process-exporter command inside the container.
RUN make
FROM scratch
COPY --from=build /go/src/github.com/ncabatoff/process-exporter/process-exporter /bin/process-exporter
# Run the process-exporter command by default when the container starts.
ENTRYPOINT ["/bin/process-exporter"]
# Document that the service listens on port 9256.
EXPOSE 9256