aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-11-25 06:40:49 +0800
committerGitHub <noreply@github.com>2016-11-25 06:40:49 +0800
commit27ed2b70cc8872fbdcdbfbd6fba46230a924187a (patch)
tree4738214cb2f62701ab02949d340ec0479158e3ff
parent9e7b608e789d71ff6f5751645e91a17e24c7e139 (diff)
parent5c662022a795e28f9eeeca6e8de4d0024c0b289c (diff)
downloaddexon-solidity-27ed2b70cc8872fbdcdbfbd6fba46230a924187a.tar
dexon-solidity-27ed2b70cc8872fbdcdbfbd6fba46230a924187a.tar.gz
dexon-solidity-27ed2b70cc8872fbdcdbfbd6fba46230a924187a.tar.bz2
dexon-solidity-27ed2b70cc8872fbdcdbfbd6fba46230a924187a.tar.lz
dexon-solidity-27ed2b70cc8872fbdcdbfbd6fba46230a924187a.tar.xz
dexon-solidity-27ed2b70cc8872fbdcdbfbd6fba46230a924187a.tar.zst
dexon-solidity-27ed2b70cc8872fbdcdbfbd6fba46230a924187a.zip
Merge pull request #1437 from ethereum/docker
Alpine base docker file.
-rw-r--r--scripts/Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
new file mode 100644
index 00000000..e34436ed
--- /dev/null
+++ b/scripts/Dockerfile
@@ -0,0 +1,12 @@
+FROM alpine
+MAINTAINER chriseth <chris@ethereum.org>
+
+RUN \
+ apk --no-cache --update add build-base cmake boost-dev git && \
+ sed -i -E -e 's/include <sys\/poll.h>/include <poll.h>/' /usr/include/boost/asio/detail/socket_types.hpp && \
+ git clone --depth 1 --recursive -b develop https://github.com/ethereum/solidity && \
+ cd /solidity && cmake -DCMAKE_BUILD_TYPE=Release -DTESTS=0 -DSTATIC_LINKING=1 && \
+ cd /solidity && 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 && \
+ rm -rf /var/cache/apk/*