How to Dockerize an Ethereum Decentralized Application
summary
Builds a simple Solidity contract that saves and fetches a message, deploys it to a local Ganache blockchain, and exposes four Node.js routes: compile, deploy, get, set. Uses Dockerfiles for three services (Ganache, server, React), notes the Ganache container must bind host as 0.0.0.0, and the server image pins Node 8.12.5 with Python2/GCC to satisfy web3 dependencies. React uses a two-stage build so the final image is about 24 MB, and images are pushed to Docker Hub via docker-compose.
AI-written summary · about
chapters (11)
- 0:00Introduction to web3
- 1:02Why docker for web3
- 3:37Ethereum dApp overview
- 4:58Workflow and smart contract
- 6:17Writing the smart contract
- 7:29Ganache dockerfile
- 8:42Node.js server dockerfile
- 11:38React.js frontend dockerfile
- 13:45Docker compose setup
- 17:44Final demo
- 20:05Pushing images and conclusion
related talks
20mAccelerating Ethereum Development with Node.js and Docker
21mHow to build a dApp
44mSpeeding Up Deployment of JavaScript and Node.js Applications
35mFull-stack JavaScript development with Docker
25mBuilding Your First App on Ethereum
34mBlockchain, Ethereum and Business Applications
01h 18mEmbracing Docker simplicity - while harnessing platform power
21mMaking Docker Actually Work
