Created
March 28, 2018 22:27
-
-
Save ddebroy/e418a59bce049cea3ef68f47d6055f78 to your computer and use it in GitHub Desktop.
network-test-image-builder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM golang:1.8-alpine | |
| RUN apk add --update bash git | |
| WORKDIR /go/src/github.com/docker/libnetwork/cmd/test-image/ | |
| COPY . ./ | |
| RUN go get github.com/sirupsen/logrus | |
| RUN mkdir -p /go/bin/ | |
| RUN go install | |
| CMD ["ls", "/go/bin/"] | |
| FROM nicolaka/netshoot | |
| COPY --from=0 /go/bin/test-image /usr/local/bin/network-tester | |
| ENTRYPOINT ["/usr/local/bin/network-tester"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment