Skip to content

Commit 99281e8

Browse files
authored
Merge pull request #9 from m-lab/more-docker
fix docker entry point err
2 parents 0f1dfed + 0bcb4b4 commit 99281e8

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

Dockerfile

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
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
39
RUN apt-get update && apt-get install -y python python-pip make iproute2 coreutils
410

@@ -15,16 +21,8 @@ RUN make install
1521

1622
RUN 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
2624
COPY --from=build /go/bin/traceroute-caller /
27-
COPY --from=ubun /usr/local/bin/scamper /
25+
2826
WORKDIR /
2927

30-
ENTRYPOINT ["/traceroute-caller"]
28+
ENTRYPOINT ["/traceroute-caller"]

0 commit comments

Comments
 (0)