File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 1- FROM ubuntu:latest as ubun
1+ FROM golang:alpine as build
2+ RUN apk update && apk add bash git pkgconfig geoip-dev geoip gcc libc-dev
3+ ADD . /go/src/github.com/m-lab/traceroute-caller
4+ RUN GOARCH=amd64 CGO_ENABLED=0 GOOS=linux go get github.com/m-lab/traceroute-caller
5+ RUN chmod -R a+rx /go/bin/traceroute-caller
6+
7+ FROM ubuntu:latest
28# Install all the standard packages we need
39RUN apt-get update && apt-get install -y python python-pip make iproute2 coreutils
410
@@ -15,16 +21,8 @@ RUN make install
1521
1622RUN chmod 4755 /usr/local/bin/scamper
1723
18- FROM golang:alpine as build
19- RUN apk update && apk add bash git pkgconfig geoip-dev geoip gcc libc-dev
20- ADD . /go/src/github.com/m-lab/traceroute-caller
21- RUN go get github.com/m-lab/traceroute-caller
22- RUN chmod -R a+rx /go/bin/traceroute-caller
23-
24- FROM golang:alpine
25- RUN apk update
2624COPY --from=build /go/bin/traceroute-caller /
27- COPY --from=ubun /usr/local/bin/scamper /
25+
2826WORKDIR /
2927
30- ENTRYPOINT ["/traceroute-caller" ]
28+ ENTRYPOINT ["/traceroute-caller" ]
You can’t perform that action at this time.
0 commit comments