aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Dockerfile
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-02-10 22:03:49 +0800
committerGitHub <noreply@github.com>2017-02-10 22:03:49 +0800
commit885b6ed96b580f9bdc214bca279e39dbaa739cf9 (patch)
treefce0688cab3c33d6075cc630216c2d829eab827d /scripts/Dockerfile
parentaf8e31b023723bfc6baa224931ef6570cd8d9a32 (diff)
parent4f6ebae36c03bea6882c77a1c7841095e7c99049 (diff)
downloaddexon-solidity-885b6ed96b580f9bdc214bca279e39dbaa739cf9.tar.gz
dexon-solidity-885b6ed96b580f9bdc214bca279e39dbaa739cf9.tar.zst
dexon-solidity-885b6ed96b580f9bdc214bca279e39dbaa739cf9.zip
Merge pull request #1616 from VoR0220/DockerReleaseAutomation
Docker release automation
Diffstat (limited to 'scripts/Dockerfile')
-rw-r--r--scripts/Dockerfile22
1 files changed, 13 insertions, 9 deletions
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
index e34436ed..8be19783 100644
--- a/scripts/Dockerfile
+++ b/scripts/Dockerfile
@@ -1,12 +1,16 @@
FROM alpine
MAINTAINER chriseth <chris@ethereum.org>
+#Official solidity docker image
-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/*
+#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 &&\
+cmake -DCMAKE_BUILD_TYPE=Release -DTESTS=0 -DSTATIC_LINKING=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 &&\
+rm -rf /var/cache/apk/* \ No newline at end of file