solidity/scripts/Dockerfile

18 lines
746 B
Docker
Raw Normal View History

2016-11-24 20:48:16 +00:00
FROM alpine
MAINTAINER chriseth <chris@ethereum.org>
#Official solidity docker image
2016-11-24 20:48:16 +00:00
#Establish working directory as solidity
WORKDIR /solidity
#Copy working directory on travis to the image
COPY / $WORKDIR
#Install dependencies, eliminate annoying warnings, and build release, delete all remaining points and statically link.
RUN ./scripts/install_deps.sh && sed -i -E -e 's/include <sys\/poll.h>/include <poll.h>/' /usr/include/boost/asio/detail/socket_types.hpp &&\
2017-08-22 20:50:03 +00:00
cmake -DCMAKE_BUILD_TYPE=Release -DTESTS=0 -DSOLC_LINK_STATIC=1 &&\
make solc && install -s solc/solc /usr/bin &&\
cd / && rm -rf solidity &&\
apk del sed build-base git make cmake gcc g++ musl-dev curl-dev boost-dev &&\
2017-03-15 16:26:06 +00:00
rm -rf /var/cache/apk/*
ENTRYPOINT ["/usr/bin/solc"]