aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..b242e8c
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,31 @@
+FROM ubuntu:20.04
+
+# Install necessary packages and ensure python means python3
+RUN apt-get update && \
+ DEBIAN_FRONTEND=noninteractive apt-get remove -y python && \
+ apt-get install -y --no-install-recommends \
+ git \
+ build-essential \
+ python3 \
+ python3-dev \
+ python3-pip && \
+ echo "alias python='python3'" >> /root/.bash_aliases && \
+ echo "alias pip='pip3'" >> /root/.bash_aliases && \
+ cd /usr/local/bin && ln -s /usr/bin/python3 python && \
+ cd /usr/local/bin && ln -s /usr/bin/pip3 pip && \
+ pip install virtualenv
+
+# Make bash the default shell
+RUN mv /bin/sh /bin/sh.old && cp /bin/bash /bin/sh
+
+# Clone the dataset repo
+RUN git clone https://github.com/alan-turing-institute/TCPD
+
+# Change working dir
+WORKDIR TCPD
+
+# Create virtualenv
+RUN make venv
+
+# Build the dataset when container is run.
+CMD ["make", "export"]