agentsclimarketplace

Dockerize service

Skill vaibhavsaxena022/skills/dockerize-service

AI-agent skills for software engineering — works with Claude Code, Codex, Cursor

Install
npx -y skills add vaibhavsaxena022/skills --skill dockerize-service

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 23 days oldThe repository was created 23 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Generate a production-ready Dockerfile (and optional docker-compose) for a service. Use when asked to containerize or dockerize a Java (Maven/Gradle) or Python service. Produces a small, multi-stage, non-root image.

SKILL.md

1.6 KB, as published. Nobody here has run it

Dockerize Service

Produce a lean, production-ready container setup for the service.

Steps

  1. Detect the stack — Maven/Gradle (Java) or pip/poetry (Python). Find the build output and entrypoint.
  2. Write a multi-stage Dockerfile:
    • Build stage — compile / install deps with layer caching: copy the manifest (pom.xml, build.gradle, pyproject.toml, requirements.txt) first, then the source.
    • Runtime stage — a slim base (eclipse-temurin:<v>-jre, python:<v>-slim); copy only the built artifact.
    • Run as a non-root user; set a fixed WORKDIR; EXPOSE the port; use exec-form ENTRYPOINT.
  3. Add a .dockerignore (exclude target/, .venv/, .git, tests, secrets, IDE files).
  4. (Optional) a docker-compose.yml wiring the service + its datastore for local dev.

Rules

  • Pin base image tags — never latest.
  • No secrets baked into the image — pass them via env vars / build args at runtime.
  • Keep the runtime image minimal: no compilers or build tools in the final stage.
  • Add a HEALTHCHECK if the service exposes a health endpoint.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.