Skip to content

Commit

Permalink
Update the Dockerfile to use Node 12
Browse files Browse the repository at this point in the history
  • Loading branch information
ESultanik committed Mar 5, 2020
1 parent e7e1a6d commit bd700bb
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ FROM ubuntu:18.04
MAINTAINER Evan Sultanik

RUN apt-get update && apt-get install -y --no-install-recommends \
npm \
curl \
ca-certificates \
bash-completion \
sudo \
&& rm -rf /var/lib/apt/lists/*

RUN npm install --production -g ganache-cli truffle && npm cache clean
RUN curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - && sudo apt-get install -y --no-install-recommends nodejs && rm -rf /var/lib/apt/lists/*

RUN npm install --production -g ganache-cli truffle && npm --force cache clean

# BEGIN Requirements for Manticore:

Expand All @@ -28,18 +30,8 @@ RUN add-apt-repository -y ppa:ethereum/ethereum && \

# END Requirements for Manticore

RUN useradd -m etheno
RUN usermod -aG sudo etheno
USER etheno
WORKDIR /home/etheno
ENV HOME /home/etheno
ENV PATH $PATH:$HOME/.local/bin
ENV LANG C.UTF-8


# BEGIN Install Echidna

USER root
WORKDIR /root
RUN apt-get update && apt-get install -y --no-install-recommends \
cmake curl wget libgmp-dev libssl1.0-dev libbz2-dev libreadline-dev \
Expand All @@ -52,8 +44,14 @@ RUN apt-get update && \
curl -sSL https://get.haskellstack.org/ | sh && \
rm -rf /var/lib/apt/lists/*

RUN useradd -m etheno
RUN usermod -aG sudo etheno
USER etheno
WORKDIR /home/etheno
ENV HOME /home/etheno
ENV PATH $PATH:$HOME/.local/bin
ENV LANG C.UTF-8

RUN git clone https://github.com/trailofbits/echidna.git && \
cd echidna && \
stack upgrade && \
Expand Down

0 comments on commit bd700bb

Please sign in to comment.