anukamithara/deploy-skills

dockerize-app

Generate or minimally improve production Dockerfiles and .dockerignore files using repository-specific build and startup evidence.

Quelltext ansehen

Verwendung

  1. Installationsbefehl kopieren und das Quellpaket vor der Installation in der eigenen Agentenumgebung prüfen.
  2. Benötigte Werkzeuge, Zugangsdaten und Hosts im Original prüfen.
  3. Eingabe und gewünschtes Ergebnis beschreiben und die Ausgabe mit den Quellen abgleichen.
npx skills add https://github.com/anukamithara/deploy-skills --skill dockerize-app

Vor dem Start

  • Die Installation umfasst weder Modellabo noch API-Kontingent oder Dateizugriffsrechte.
  • Sterne und Installationen zeigen Aktivität, keine unabhängige Qualitäts- oder Sicherheitsprüfung.
Originales Skill-Dokument

Aus dem Quell-Repository gerendert; Überschriften, Beispiele, Code, Tabellen, Links und Bilder bleiben erhalten.

Dockerize App

Create an image that matches the analyzed application instead of a generic template.

Workflow

  1. Require an analyze-deployment result or perform that analysis first.
  2. Inspect every existing Dockerfile, ignore file, lockfile, and startup declaration.
  3. Read references/dockerfile-rules.md.
  4. Read only the matching stack reference: references/python-fastapi.md, references/nodejs-api.md, references/nextjs.md, or references/spring-boot.md.
  5. Propose the exact files and behavior to change before editing existing configuration.
  6. Generate a matching .dockerignore; use assets/dockerignore.base only as a baseline and preserve required build inputs.
  7. Run python3 scripts/inspect-dockerfile.py --dockerfile <path> and build the image when Docker is available.
  8. 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.

Verwandte Aufgaben

aus demselben Repository

Weitere Skills

Alle Skills