Debian Codegraph @

Dockerfile

raw
1 ##################################################################
2 FROM ubuntu:22.04 AS build_stage
3 WORKDIR /dropwatch
4
5 RUN apt update \
6 && apt install -y \
7 build-essential \
8 autoconf \
9 libnl-3-dev \
10 libnl-genl-3-dev \
11 libpcap-dev \
12 libreadline-dev \
13 binutils-dev \
14 && apt-get clean \
15 && rm -rf /var/lib/apt/lists/*
16
17 COPY . .
18
19 RUN ./autogen.sh
20 RUN ./configure
21 RUN make
22
23 ##################################################################
24 FROM ubuntu:22.04 AS run_stage
25 WORKDIR /dropwatch
26
27 RUN apt update \
28 && apt install -y \
29 libnl-3-200 \
30 libnl-genl-3-200 \
31 libpcap0.8 \
32 libreadline8 \
33 binutils \
34 && apt-get clean \
35 && rm -rf /var/lib/apt/lists/*
36
37 COPY --from=build_stage /dropwatch/src/dropwatch /dropwatch/dropwatch
38
39 CMD /dropwatch/dropwatch -l kas