From 498a6868a7541611c4c88cbc3bd49e83a7679b8a Mon Sep 17 00:00:00 2001 From: Sylvain Bellemare Date: Tue, 3 Dec 2019 22:54:46 -0500 Subject: [PATCH] Install solidity from docker image --- Dockerfile | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9e8691d5..3b8cda02 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,18 +28,8 @@ COPY . . FROM tests as pre-dev WORKDIR / -# Install solidity -# TODO look at https://github.com/ethereum/solidity/blob/e383b2bbbaeae33bd44d1e3b641ca922cf030c8d/.circleci/docker/Dockerfile.ubuntu1904 -RUN git clone --recursive https://github.com/ethereum/solidity.git -WORKDIR /solidity/ -RUN git checkout v0.4.24 # Old version necessary to work??? -RUN git submodule update --init --recursive -RUN ./scripts/install_deps.sh -RUN mkdir build/ -WORKDIR /solidity/build/ -RUN cmake .. -RUN make install -WORKDIR / +# solidity +COPY --from=ethereum/solc:0.4.24 /usr/bin/solc /usr/bin/solc # Bash commands RUN echo "alias cls=\"clear && printf '\e[3J'\"" >> ~/.bashrc