Update go dependencies
This commit is contained in:
parent
432f534383
commit
f4a4daed84
1299 changed files with 71186 additions and 91183 deletions
18
vendor/github.com/ncabatoff/process-exporter/Dockerfile
generated
vendored
18
vendor/github.com/ncabatoff/process-exporter/Dockerfile
generated
vendored
|
|
@ -1,17 +1,21 @@
|
|||
# Start from a Debian image with the latest version of Go installed
|
||||
# and a workspace (GOPATH) configured at /go.
|
||||
FROM golang
|
||||
|
||||
# Copy the local package files to the container's workspace.
|
||||
ADD . /go/src/github.com/ncabatoff/process-exporter
|
||||
FROM golang:1.10 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 -C /go/src/github.com/ncabatoff/process-exporter
|
||||
RUN make
|
||||
|
||||
USER root
|
||||
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 ["/go/src/github.com/ncabatoff/process-exporter/process-exporter"]
|
||||
ENTRYPOINT ["/bin/process-exporter"]
|
||||
|
||||
# Document that the service listens on port 9256.
|
||||
EXPOSE 9256
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue