anukamithara/deploy-skills

dockerize-app

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

Zobacz źródło

Jak używać

  1. Skopiuj polecenie instalacji i sprawdź źródła przed instalacją we własnym środowisku agenta.
  2. W oryginale sprawdź wymagane narzędzia, dane dostępowe i obsługiwane środowiska.
  3. Opisz dane wejściowe i oczekiwany rezultat; porównaj wynik ze źródłami.
npx skills add https://github.com/anukamithara/deploy-skills --skill dockerize-app

Przed rozpoczęciem

  • Instalacja nie obejmuje subskrypcji modelu, limitu API ani uprawnień do plików.
  • Gwiazdki i instalacje pokazują aktywność, a nie niezależny test jakości lub bezpieczeństwa.
Oryginalny dokument Skill

Treść z repozytorium z zachowaniem nagłówków, przykładów, kodu, tabel, linków i obrazów.

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.

Powiązane zadania

z tego samego repozytorium

Więcej Skills

Wszystkie Skills