diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-05-15 21:01:07 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-05-15 21:01:07 +0100 |
| commit | 3145984e888b2b38e3eec5c536ca0f2b8a366258 (patch) | |
| tree | 0f1579dd9c58a50092648204fdfdca73a0e6994a /Dockerfile | |
| parent | Merge branch 'bugfix/bee_waggle_6_rounding' (diff) | |
| download | TCPD-3145984e888b2b38e3eec5c536ca0f2b8a366258.tar.gz TCPD-3145984e888b2b38e3eec5c536ca0f2b8a366258.zip | |
Add docker image for tcpd
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 31 |
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"] |
