# File to be used for building an Ubuntu .deb FROM ubuntu:trusty MAINTAINER Brenden Blanco RUN apt-get -y install wget RUN printf "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty main\ndeb-src http://llvm.org/apt/trusty/ llvm-toolchain-trusty main\n" > /etc/apt/sources.list.d/llvm.list RUN wget -q -O - http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add - RUN apt-get -y update RUN apt-get -y install bison build-essential cmake flex git libedit-dev python zlib1g-dev RUN apt-get -y install libllvm3.7 llvm-3.7-dev libclang-3.7-dev RUN mkdir -p /root/bcc/build COPY ./ /root/bcc/ WORKDIR /root/bcc/build RUN cmake .. -DCMAKE_INSTALL_PREFIX=/usr RUN make -j$(grep -c ^process /proc/cpuinfo) package