aboutsummaryrefslogtreecommitdiffstats
path: root/.dockerignore
diff options
context:
space:
mode:
authorChristian Parpart <christian@ethereum.org>2018-06-21 22:54:48 +0800
committerChristian Parpart <christian@ethereum.org>2018-06-26 18:12:35 +0800
commit754610077680e19a80655ab1dcc0f430a340c232 (patch)
tree54cc8397bf146942e60b89a50e8cfbe1e084dee5 /.dockerignore
parent4be9dc430452ca73ffb07f987f27fb6ccf4ac848 (diff)
downloaddexon-solidity-754610077680e19a80655ab1dcc0f430a340c232.tar.gz
dexon-solidity-754610077680e19a80655ab1dcc0f430a340c232.tar.zst
dexon-solidity-754610077680e19a80655ab1dcc0f430a340c232.zip
Dockerfile: improves docker image size and small others
This greatly improves size of the final docker image with the help of multi-stage docker builds. With that change, we can also make the build stage readable/maintainable again by splitting up into multiple RUN statements as well as not needing to clean-up temporary objects. The dependencies have been put on top of the primary COPY statement in order to not rebuild the dependencies each time one wants to rebuild the docker image (for example due to code changes). The solc compilation itself is now parallelized to the CPU core count to speed up those builds that have more cores available on their docker build system. Future Notes: ------------- We could further improve the Dockerfile by explicitely adding the directories this docker build is interested in (such as solc source code exclusively). Or one may want to also use the build step for automated testing (CI) by enforcing soltest and cmdlineTests.sh right before finalizing the image.
Diffstat (limited to '.dockerignore')
0 files changed, 0 insertions, 0 deletions