DevOps-Materials/Docker/5 - Intro to Docker Iamges/simple_express_app at main · IITC-College/DevOps-Materials
Task 1 — Create a Dockerfile
Create a file named:
Dockerfile
Add instructions that:
- Use a Node.js image
- Set a working directory
- Copy application files
- Install dependencies
- Expose port
3000
- Run the Node.js application
Task 2 — Build the Docker Image
Build the Docker image locally.
Requirements:
- Image name:
simple-node-app
- Tag:
v1
Task 3 — Verify the Image
Use Docker commands to verify the image exists locally.