DevOps essentials — Dockerfile best practices, CI/CD patterns, deployment configuration, and container security
89
87%
Does it follow best practices?
Impact
100%
1.21xAverage score across 3 eval scenarios
Passed
No known issues
A team is building a full-stack application with a React frontend and an Express/Node.js (TypeScript) backend API. They need to containerize both services and set up docker-compose for local development and production deployment.
Frontend (React):
dist/Backend (Express API):
dist//health endpointDatabase:
The project structure is:
/frontend/ — React app (has its own package.json)
/backend/ — Express API (has its own package.json)
/docker-compose.ymlProduce:
output/frontend/Dockerfile — Dockerfile for the React frontendoutput/backend/Dockerfile — Dockerfile for the Express backendoutput/docker-compose.yml — Docker Compose configuration for all servicesoutput/.dockerignore — Docker ignore file (can be shared or per-service)All files should be production-ready. No placeholders or TODO comments.