Skip to content

Commit c9aff55

Browse files
dalehamelyonghong-song
authored andcommitted
Install python dependencies via pip
1 parent fb9b4db commit c9aff55

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile.ubuntu

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,10 @@ COPY --from=builder /root/bcc/*.deb /root/bcc/
2323

2424
RUN \
2525
apt-get update -y && \
26-
DEBIAN_FRONTEND=noninteractive apt-get install -y python python3 binutils libelf1 kmod python-dnslib python-cachetools python3-dnslib python3-cachetools && \
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 && \
2732
dpkg -i /root/bcc/*.deb

0 commit comments

Comments
 (0)