This project demonstrates how to build and run a basic Node.js web app inside a Docker container using a custom Dockerfile.
├── index.js ├── package.json └── Dockerfile
- Runs a Node.js web server using Express
 - Built on a lightweight 
node:alpineimage - Exposes HTTP service on port 
3000inside the container - Includes Docker DNS alias support for multi-container networking
 
- Docker installed
 - Basic knowledge of Node.js and Docker
 
mkdir webapp && cd webapp  docker build -t mynodeapp . docker network create my_custom_net docker run -d \ --network my_custom_net \ --network-alias web \ --name nodeapp \ mynodeapp docker run --rm --network my_custom_net alpine \ sh -c "apk add --no-cache curl && curl web:3000" You should see:
Hello from the custom app container! To stop and remove everything:
docker rm -f nodeapp docker network rm my_custom_net Built with ❤️ by dchak2023