Debian Codegraph @

.github/images/alpine:3.Dockerfile

raw
1 # to build the image locally tagged with the short commit hash:
2 # docker build -t bgpq4:$(git rev-parse --short HEAD) -f .github/images/alpine:3.Dockerfile .
3 ARG IMAGE=alpine:3
4 FROM $IMAGE as builder
5
6 # Install dependencies
7 RUN apk upgrade
8 RUN apk add autoconf automake file gcc gzip libtool make musl-dev
9
10 # Add source code
11 ADD . /src
12 WORKDIR /src
13
14 # Run steps
15 RUN ./bootstrap
16 RUN ./configure
17 RUN make
18 RUN make check
19 RUN make distcheck
20
21 FROM alpine:3
22 COPY --from=builder /src/bgpq4 /bgp/
23 WORKDIR /bgp
24 ENTRYPOINT [ "./bgpq4" ]