mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Alpine base docker file.
This commit is contained in:
parent
9e7b608e78
commit
5c662022a7
12
scripts/Dockerfile
Normal file
12
scripts/Dockerfile
Normal file
@ -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/*
|
Loading…
Reference in New Issue
Block a user