containerizing-applications

Generates Dockerfiles, docker-compose configurations, and Helm charts for containerizing applications.

9|2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/AbdullahMalik17/Hacathan_5 --skill containerizing-applications-abdullahmalik17
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: containerizing-applications
Source: https://github.com/AbdullahMalik17/Hacathan_5/tree/main/.claude/skills/containerizing-applications
Command: npx skills add https://github.com/AbdullahMalik17/Hacathan_5 --skill containerizing-applications-abdullahmalik17

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Containerizing applications involves many subtle pitfalls—browser vs server URLs, healthcheck failures, startup ordering, and image security—that cause broken deployments and wasted debugging time. This Skill provides proven Dockerfile, docker-compose, and Helm chart patterns plus 15+ documented gotchas to get containers right the first time. ## Core Features & Use Cases - Dockerfile Generation: Multi-stage build patterns for FastAPI/Python (with uv) and Next.js (standalone output), including non-root users and BuildKit syntax. - docker-compose & Helm Charts: Compose configurations with healthchecks and dependency ordering, plus complete Helm chart structure with values.yaml patterns and CLI commands. - Production Security: Docker Hardened Images, Trivy vulnerability scanning, distroless base images, multi-arch builds, and BuildKit secret mounting. - Use Case: You have a FastAPI backend and Next.js frontend that need to run in Docker Compose locally and deploy to Kubernetes. Use this Skill to generate the Dockerfiles, compose file with proper networking, and a Helm chart while avoiding common traps like IPv6 healthcheck failures and localhost-in-container issues. ## Quick Start Containerize my FastAPI backend and Next.js frontend with Dockerfiles, a docker-compose file, and a Helm chart for Kubernetes deployment.

Frequently Asked Questions about containerizing-applications

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a Dockerfile for a FastAPI Python application?▼

Use a multi-stage build with python:3.13-slim: install dependencies with uv in a builder stage, copy site-packages into the final stage, create a non-root user, and run uvicorn on port 8000. Always include the syntax=docker/dockerfile:1 directive as the first line.

How do I containerize a Next.js app with Docker?▼

Use a three-stage Dockerfile with node:20-alpine: install dependencies, build with NEXT_PUBLIC_ build args baked in, then copy the standalone output into a minimal runner stage. Run as a non-root user and start with node server.js on port 3000.

Why does my Docker healthcheck fail with localhost?▼

Healthchecks using localhost can fail due to IPv6 resolution inside containers. Use 127.0.0.1 explicitly in the healthcheck test command, for example wget --spider http://127.0.0.1:3000/ instead of localhost.

What is the difference between browser and server URLs in docker-compose?▼

Browser-side code runs on the host and needs localhost URLs passed as build args, while server-side code runs inside the container network and must use Docker service names like http://api:8000 set via environment variables.

How do I scan Docker images for vulnerabilities in CI?▼

Use Trivy in your CI pipeline with the command trivy image --severity HIGH,CRITICAL --exit-code 1 to fail builds on serious vulnerabilities. You can also generate SBOMs and use a .trivyignore file to document accepted CVEs.

When should I use distroless images instead of alpine?▼

Use distroless images when you want minimal attack surface since they contain no shell or package manager and run as non-root by default. They work well for Python, Node.js, and Go production workloads but make debugging harder since you cannot exec into the container.