libbpf-tools: Add verbose option to mountsnoop
[platform/upstream/bcc.git] / Dockerfile.ubuntu
1 ARG OS_TAG=18.04
2 FROM ubuntu:${OS_TAG} as builder
3
4 ARG OS_TAG
5 ARG BUILD_TYPE=release
6 ARG DEBIAN_FRONTEND=noninteractive
7
8 MAINTAINER Brenden Blanco <bblanco@gmail.com>
9
10 RUN apt-get -qq update && \
11     apt-get -y install pbuilder aptitude
12
13 COPY ./ /root/bcc
14
15 WORKDIR /root/bcc
16
17 RUN /usr/lib/pbuilder/pbuilder-satisfydepends && \
18     ./scripts/build-deb.sh ${BUILD_TYPE}
19
20 FROM ubuntu:${OS_TAG}
21
22 COPY --from=builder /root/bcc/*.deb /root/bcc/
23
24 RUN \
25   apt-get update -y && \
26   DEBIAN_FRONTEND=noninteractive apt-get install -y python python3 python3-pip binutils libelf1 kmod  && \
27   if [ ${OS_TAG} = "18.04" ];then \
28     apt-get -y install python-pip && \
29     pip install dnslib cachetools ; \
30   fi ; \
31   pip3 install dnslib cachetools  && \
32   dpkg -i /root/bcc/*.deb