dockerize-app
Installation
SKILL.md
Dockerize App
Create an image that matches the analyzed application instead of a generic template.
Workflow
- Require an
analyze-deploymentresult or perform that analysis first. - Inspect every existing Dockerfile, ignore file, lockfile, and startup declaration.
- Read references/dockerfile-rules.md.
- Read only the matching stack reference: references/python-fastapi.md, references/nodejs-api.md, references/nextjs.md, or references/spring-boot.md.
- Propose the exact files and behavior to change before editing existing configuration.
- Generate a matching
.dockerignore; use assets/dockerignore.base only as a baseline and preserve required build inputs. - Run
python3 scripts/inspect-dockerfile.py --dockerfile <path>and build the image when Docker is available. - Report the chosen base, lockfile, build stages, runtime user, command, port, health strategy, and unresolved assumptions.
Do not embed credentials, copy local environment files, install unnecessary tools in the runtime stage, or invent a startup command unsupported by the repository.