https://github.com/IITC-College/express-ts-app
Goal
Containerize the provided Express + TypeScript API using a production-grade Docker setup.
The application already exists.
Your task is only to:
- Create the Docker configuration
- Build the production image
- Run the containerized API
- Optimize the final runtime image
Application Details
| Item |
Value |
| Runtime |
Node.js 22 |
| Build Output |
dist/ |
| Entry File |
dist/index.js |
| Runtime Port |
3000 |
| Health Endpoint |
/health |
Part 1 — Analyze the Existing Project
Instructions
- Review the existing project structure.
- Identify:
- Which command builds the TypeScript application
- Where the compiled output is generated
- Which file starts the application
- Which port the API uses
- Verify the application works locally before containerizing it.
Part 2 — Create the Dockerfile