From fa7a76ca6bb2ea28a51b1caf6e1c1ac793f3abc6 Mon Sep 17 00:00:00 2001 From: Justin Wilson Date: Tue, 29 May 2018 16:54:13 -0600 Subject: [PATCH] Slimmed down Dockerfile, with `myth` set as the entrypoint. Also pinning to bionic, to avoid surprises with versions bumps. --- Dockerfile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 38380f62..d7f1ecb7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,21 @@ -FROM ubuntu:rolling +FROM ubuntu:bionic -COPY . . +COPY . /opt/mythril RUN apt-get update \ && apt-get install -y software-properties-common \ && add-apt-repository -y ppa:ethereum/ethereum \ && apt-get update \ - && apt-get install -y solc \ - && apt-get install -y libssl-dev \ - && apt-get install -y python3-pip=9.0.1-2 python3-dev \ + && apt-get install -y \ + solc \ + libssl-dev \ + python3-pip=9.0.1-2 \ + python3-dev \ + pandoc \ + git \ && ln -s /usr/bin/python3 /usr/local/bin/python \ - # && pip3 install --upgrade pip \ - && apt-get install -y pandoc \ - && apt-get install -y git \ + && cd /opt/mythril \ && pip3 install -r requirements.txt \ && python setup.py install -CMD [] +ENTRYPOINT ["/usr/local/bin/myth"]