dockerize-app

Installation
SKILL.md

Dockerize App

Overview

Produce a small, secure, fast-building image that runs the app exactly as it runs today. Read how the project builds and starts before writing a line, and prove the result by building and running it.

Method

  1. Discover: runtime and version (.nvmrc, engines, python_requires, pom.xml, go.mod), package manager and lockfile, build command, start command, port, required environment variables (.env.example), and services it needs (database, cache). Secrets check: if a .env or similar file in the project holds real-looking credentials (passwords, production hosts, API keys), tell the user in your reply: it must stay out of the image and out of git, and any secret that was ever committed should be rotated. Never use that file in example docker run --env-file commands; use .env.example as the template.
  2. Write the Dockerfile with the rules below. Templates per stack are in templates.md.
  3. Write .dockerignore before the first build.
  4. Write docker-compose.yml if the app needs services, with health checks and named volumes.
  5. Build and run to verify: docker build -t app ., docker run --rm -p <port>:<port> --env-file .env app, then hit the health or home route. Report image size (docker images app).

Rules

Installs
2
GitHub Stars
4
First Seen
Oct 18, 2026