docker-containerization

Generate Dockerfiles, docker-compose configurations, and deployment scripts for containerizing web applications.

Updated Aug 2, 2026
One-click install
npx skills add https://github.com/jeje-it/template-projet --skill docker-containerization-jeje-it
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docker-containerization
Source: https://github.com/jeje-it/template-projet/tree/main/.agents/skills/docker-containerization
Command: npx skills add https://github.com/jeje-it/template-projet --skill docker-containerization-jeje-it

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve? Containerizing applications for development, production, and deployment requires writing optimized Dockerfiles, orchestration configs, and management scripts from scratch, which is error-prone and time-consuming. ## Core Features & Use Cases - Dockerfile Generation: Produces multi-stage production, development, and Nginx static-export Dockerfiles with non-root users, health checks, and Alpine-based images. - Container Management Scripts: Provides bash scripts for building, running, pushing to registries (Docker Hub, ECR, GCR, ACR), and cleaning up Docker resources with dry-run support. - Deployment Guidance: Includes reference documentation covering Docker best practices and orchestration on Kubernetes, AWS ECS, Google Cloud Run, Azure ACI, and Digital Ocean. - Use Case: A developer needs to ship a Next.js app to production. They copy the production Dockerfile and .dockerignore, build with docker-build.sh, push to ECR with docker-push.sh, then follow the ECS task definition guide to deploy on Fargate. ## Quick Start Ask the assistant to containerize your Next.js application for production and generate the Dockerfile, docker-compose setup, and build scripts.

Frequently Asked Questions about docker-containerization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I containerize a Next.js app for production with Docker?▼

Use the multi-stage production Dockerfile template, which separates dependency installation, build, and runtime stages. Build with docker-build.sh, test locally with docker-run.sh, then push to your registry with docker-push.sh.

How do I reduce Docker image size for Node.js applications?▼

Use multi-stage builds with an Alpine base image, order layers for optimal caching, and add a comprehensive .dockerignore excluding node_modules and build artifacts. This approach can reduce image size by up to 85 percent.

Can I deploy a Docker container to Kubernetes or AWS ECS?▼

Yes, the orchestration reference covers Kubernetes deployments with services, ingress, and autoscaling, plus AWS ECS task definitions for Fargate. It also includes Google Cloud Run, Azure Container Instances, and Digital Ocean configurations.

Why does my Docker container exit immediately after starting?▼

Check container logs with docker logs to identify the failure, verify the CMD or ENTRYPOINT instruction, and confirm no port conflicts exist. Running the container interactively with docker run -it helps debug startup issues.

How do I push Docker images to ECR, GCR, or Docker Hub?▼

The docker-push.sh script supports multiple registries by accepting a registry URL and repository name. It tags the local image for the target registry and pushes it, with support for additional tags like stable or version numbers.