-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (32 loc) · 786 Bytes
/
Copy pathDockerfile
File metadata and controls
39 lines (32 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
##################################################################
FROM ubuntu:22.04 AS build_stage
WORKDIR /dropwatch
RUN apt update \
&& apt install -y \
build-essential \
autoconf \
libnl-3-dev \
libnl-genl-3-dev \
libpcap-dev \
libreadline-dev \
binutils-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY . .
RUN ./autogen.sh
RUN ./configure
RUN make
##################################################################
FROM ubuntu:22.04 AS run_stage
WORKDIR /dropwatch
RUN apt update \
&& apt install -y \
libnl-3-200 \
libnl-genl-3-200 \
libpcap0.8 \
libreadline8 \
binutils \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build_stage /dropwatch/src/dropwatch /dropwatch/dropwatch
CMD /dropwatch/dropwatch -l kas