Containerization & Deployment
Docker is a platform that packages applications into containers so they run the same on any system.
Image → Blueprint of app Container → Running app Dockerfile → Instructions to build image
FROM node:18 WORKDIR /app COPY . . RUN npm install CMD ["node", "app.js"]
docker build -t myapp .
docker run -p 3000:3000 myapp
- Same environment everywhere - Easy deployment - Scalable apps