about summary refs log tree commit diff homepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorDan Liew <daniel.liew@imperial.ac.uk>2015-04-10 18:47:42 +0100
committerDan Liew <daniel.liew@imperial.ac.uk>2015-04-10 19:59:19 +0100
commit44cceb1eb7ab58b153a20d12c84d6b0b352e05da (patch)
treeb6e35aec6b181e86805b9706a04476e3079bcf4e /Dockerfile
parent05e0e3cf9110a85def287669fa302f0b572f4016 (diff)
downloadklee-44cceb1eb7ab58b153a20d12c84d6b0b352e05da.tar.gz
The Docker image had python2 and python3 which is a waste of space
(I'm not sure where python3 came from. I didn't explicitly install it).

Just ship python3.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index f97ffabd..07f1bb48 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,9 +26,9 @@ RUN apt-get update && \
         cmake \
         make \
         libboost-program-options-dev \
-        python \
-        python-dev \
-        python-pip \
+        python3 \
+        python3-dev \
+        python3-pip \
         perl \
         flex \
         bison \
@@ -38,7 +38,8 @@ RUN apt-get update && \
         wget \
         unzip \
         binutils && \
-    pip install -U lit tabulate
+    pip3 install -U lit tabulate && \
+    update-alternatives --install /usr/bin/python python /usr/bin/python3 50
 
 # Create ``klee`` user for container with password ``klee``.
 # and give it password-less sudo access (temporarily so we can use the TravisCI scripts)