forked from iovisor/bcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.ubuntu
32 lines (23 loc) · 765 Bytes
/
Dockerfile.ubuntu
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
ARG OS_TAG=18.04
FROM ubuntu:${OS_TAG} as builder
ARG OS_TAG
ARG BUILD_TYPE=release
ARG DEBIAN_FRONTEND=noninteractive
MAINTAINER Brenden Blanco <[email protected]>
RUN apt-get -qq update && \
apt-get -y install pbuilder aptitude
COPY ./ /root/bcc
WORKDIR /root/bcc
RUN /usr/lib/pbuilder/pbuilder-satisfydepends && \
./scripts/build-deb.sh ${BUILD_TYPE}
FROM ubuntu:${OS_TAG}
COPY --from=builder /root/bcc/*.deb /root/bcc/
RUN \
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y python python3 python3-pip binutils libelf1 kmod && \
if [ ${OS_TAG} = "18.04" ];then \
apt-get -y install python-pip && \
pip install dnslib cachetools ; \
fi ; \
pip3 install dnslib cachetools && \
dpkg -i /root/bcc/*.deb