[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EM1VG4H9SH4RMKS1H769C4":3,"skill-same:01M6EM1VG4H9SH4RMKS1H769C4":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":42,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M6EM1VG4H9SH4RMKS1H769C4","containerizing-applications",null,"Containerizes applications with Docker, docker-compose, and Helm charts.\nUse when creating Dockerfiles, docker-compose configurations, or Helm charts for Kubernetes.\nIncludes Docker Hardened Images (95% fewer CVEs), multi-stage builds, and 15+ battle-tested gotchas.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fasmayaseen\u002Fcontainerizing-applications\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31],"applications","containerizing applications","docker","kubernetes","Charts","helm","dockerfiles","use","compose","images","docker-compose","stage","multi","2026-11-10 10:12:30",false,"---\r\nname: containerizing-applications\r\ndescription: |\r\n  Containerizes applications with Docker, docker-compose, and Helm charts.\r\n  Use when creating Dockerfiles, docker-compose configurations, or Helm charts for Kubernetes.\r\n  Includes Docker Hardened Images (95% fewer CVEs), multi-stage builds, and 15+ battle-tested gotchas.\r\n---\r\n\r\n# Containerizing Applications\r\n\r\n## Quick Start\r\n\r\n1. Run impact analysis first (env vars, network topology, auth\u002FCORS)\r\n2. Generate Dockerfiles using patterns below\r\n3. Create docker-compose.yml with proper networking\r\n4. Package as Helm chart for Kubernetes\r\n\r\n## Dockerfile Patterns\r\n\r\n### FastAPI\u002FPython (Multi-stage with uv)\r\n\r\n```dockerfile\r\n# syntax=docker\u002Fdockerfile:1\r\nFROM python:3.13-slim AS builder\r\nWORKDIR \u002Fapp\r\nRUN pip install uv\r\nCOPY pyproject.toml .\r\nRUN uv pip install --system --no-cache -r pyproject.toml\r\n\r\nFROM python:3.13-slim\r\nWORKDIR \u002Fapp\r\nCOPY --from=builder \u002Fusr\u002Flocal\u002Flib\u002Fpython3.13\u002Fsite-packages \u002Fusr\u002Flocal\u002Flib\u002Fpython3.13\u002Fsite-packages\r\nCOPY . .\r\nRUN useradd -u 1000 appuser && chown -R appuser \u002Fapp\r\nUSER appuser\r\nEXPOSE 8000\r\nCMD [\"uvicorn\", \"app.main:app\", \"--host\", \"0.0.0.0\", \"--port\", \"8000\"]\r\n```\r\n\r\n### Next.js (Standalone)\r\n\r\n```dockerfile\r\n# syntax=docker\u002Fdockerfile:1\r\nFROM node:20-alpine AS deps\r\nWORKDIR \u002Fapp\r\nCOPY package*.json .\u002F\r\nRUN npm ci\r\n\r\nFROM node:20-alpine AS builder\r\nWORKDIR \u002Fapp\r\nCOPY --from=deps \u002Fapp\u002Fnode_modules .\u002Fnode_modules\r\nCOPY . .\r\nARG NEXT_PUBLIC_API_URL\r\nARG NEXT_PUBLIC_SSO_URL\r\nENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL\r\nENV NEXT_PUBLIC_SSO_URL=$NEXT_PUBLIC_SSO_URL\r\nRUN npm run build\r\n\r\nFROM node:20-alpine AS runner\r\nWORKDIR \u002Fapp\r\nENV NODE_ENV=production\r\nRUN addgroup -g 1001 -S nodejs && adduser -S nextjs -u 1001\r\nCOPY --from=builder \u002Fapp\u002F.next\u002Fstandalone .\u002F\r\nCOPY --from=builder \u002Fapp\u002F.next\u002Fstatic .\u002F.next\u002Fstatic\r\nCOPY --from=builder \u002Fapp\u002Fpublic .\u002Fpublic\r\nUSER nextjs\r\nEXPOSE 3000\r\nCMD [\"node\", \"server.js\"]\r\n```\r\n\r\n## docker-compose Pattern\r\n\r\n```yaml\r\nservices:\r\n  web:\r\n    build:\r\n      context: .\u002Fweb\r\n      args:\r\n        # BROWSER: baked into JS bundle\r\n        - NEXT_PUBLIC_API_URL=http:\u002F\u002Flocalhost:8000\r\n    environment:\r\n      # SERVER: read at runtime inside container\r\n      - SERVER_API_URL=http:\u002F\u002Fapi:8000\r\n    ports:\r\n      - \"3000:3000\"\r\n    depends_on:\r\n      api:\r\n        condition: service_healthy\r\n\r\n  api:\r\n    build: .\u002Fapi\r\n    environment:\r\n      - DATABASE_URL=${DATABASE_URL}\r\n      - CORS_ORIGINS=http:\u002F\u002Flocalhost:3000,http:\u002F\u002Fweb:3000\r\n    ports:\r\n      - \"8000:8000\"\r\n    healthcheck:\r\n      test: [\"CMD\", \"curl\", \"-f\", \"http:\u002F\u002F127.0.0.1:8000\u002Fhealth\"]\r\n      interval: 30s\r\n      timeout: 10s\r\n      retries: 3\r\n      start_period: 40s\r\n```\r\n\r\n## Helm Chart Structure\r\n\r\n```\r\nhelm\u002Fmyapp\u002F\r\n├── Chart.yaml\r\n├── values.yaml\r\n├── templates\u002F\r\n│   ├── _helpers.tpl\r\n│   ├── deployment.yaml\r\n│   ├── service.yaml\r\n│   ├── configmap.yaml\r\n│   ├── secret.yaml\r\n│   └── ingress.yaml\r\n```\r\n\r\n### Chart.yaml\r\n\r\n```yaml\r\napiVersion: v2\r\nname: myapp\r\nversion: 1.0.0\r\nappVersion: \"1.0.0\"\r\n```\r\n\r\n### values.yaml Pattern\r\n\r\n```yaml\r\napi:\r\n  replicaCount: 1\r\n  image:\r\n    repository: myapp\u002Fapi\r\n    tag: latest\r\n    pullPolicy: IfNotPresent\r\n  service:\r\n    type: ClusterIP\r\n    port: 8000\r\n  resources:\r\n    limits:\r\n      cpu: 500m\r\n      memory: 512Mi\r\n```\r\n\r\n### Helm Commands\r\n\r\n```bash\r\nhelm create mychart              # Create new chart\r\nhelm template . --debug          # Render templates\r\nhelm install myapp .\u002Fchart       # Install\r\nhelm upgrade myapp .\u002Fchart       # Upgrade\r\nhelm install myapp .\u002Fchart \\\r\n  --set api.image.tag=v2.0.0     # Override values\r\n```\r\n\r\n## Battle-Tested Gotchas (15+)\r\n\r\n### 1. Browser vs Server URLs\r\n**Problem:** Browser runs on host, server runs in container\r\n```yaml\r\nbuild:\r\n  args:\r\n    - NEXT_PUBLIC_API_URL=http:\u002F\u002Flocalhost:8000   # Browser\r\nenvironment:\r\n  - SERVER_API_URL=http:\u002F\u002Fapi:8000                # Server\r\n```\r\n\r\n### 2. Healthcheck IPv6 Issue\r\n**Problem:** `wget http:\u002F\u002Flocalhost:3000` fails with IPv6\r\n```yaml\r\nhealthcheck:\r\n  test: [\"CMD\", \"wget\", \"--spider\", \"http:\u002F\u002F127.0.0.1:3000\u002F\"]  # NOT localhost!\r\n```\r\n\r\n### 3. MCP Server 421 Misdirected Request\r\n**Problem:** FastMCP rejects Docker service names\r\n```python\r\ntransport_security = TransportSecuritySettings(\r\n    allowed_hosts=[\"127.0.0.1:*\", \"localhost:*\", \"mcp-server:*\", \"0.0.0.0:*\"]\r\n)\r\n```\r\n\r\n### 4. SQLModel Tables Not Created\r\n**Problem:** Models not imported before `create_all()`\r\n```python\r\n# MUST import before create_all()\r\nfrom .models import User, Task, Project  # noqa: F401\r\nSQLModel.metadata.create_all(engine)\r\n```\r\n\r\n### 5. Database Migration Order\r\n**Problem:** Drizzle `db:push` drops tables not in schema\r\n**Solution:** Start postgres → Run Drizzle → Then start API\r\n\r\n### 6. uv Network Timeout\r\n```dockerfile\r\nRUN UV_HTTP_TIMEOUT=120 uv pip install --system --no-cache -r pyproject.toml\r\n```\r\n\r\n### 7. Missing Syntax Directive\r\n```dockerfile\r\n# syntax=docker\u002Fdockerfile:1    # ALWAYS first line\r\nFROM python:3.13-slim\r\n```\r\n\r\n### 8. localhost in Container\r\nUse Docker service names (api, web, sso) for server-side, NOT localhost\r\n\r\n### 9. Auth Origins\r\nAdd Docker service names to trustedOrigins BEFORE building\r\n\r\n### 10. Service Startup Order\r\nUse `depends_on` with `condition: service_healthy`\r\n\r\n### 11. Health Check Timing\r\nUse `start_period` (e.g., 40s) for apps that take time to start\r\n\r\n### 12. pgAdmin Email Validation\r\nUse valid email like `admin@example.com`, not `.local` domains\r\n\r\n### 13. Playwright in Dependencies\r\nKeep test tools in devDependencies (300MB+ bloat)\r\n\r\n### 14. MCP Health Check 406\r\nAdd separate `\u002Fhealth` endpoint via ASGI middleware\r\n\r\n### 15. Helm Comma Parsing\r\nUse values file instead of `--set` for comma-containing values\r\n\r\n## Production Security\r\n\r\n### Docker Hardened Images (Recommended)\r\n\r\n**95% fewer CVEs** than community images. Free under Apache 2.0.\r\n\r\n```dockerfile\r\n# BEFORE: Community image with unknown CVEs\r\nFROM python:3.12-slim\r\n\r\n# AFTER: Docker Hardened Image\r\nFROM docker.io\u002Fdocker\u002Fpython:3.12-dhi\r\n```\r\n\r\n**Five Pillars of DHI:**\r\n| Pillar | What You Get |\r\n|--------|--------------|\r\n| Minimal Attack Surface | 98% CVE reduction |\r\n| 100% Complete SBOM | SPDX\u002FCycloneDX format |\r\n| SLSA Build Level 3 | Verified provenance |\r\n| OpenVEX | Machine-readable vuln status |\r\n| Cosign Signatures | Cryptographic verification |\r\n\r\n**Verify signatures:**\r\n```bash\r\ncosign verify docker.io\u002Fdocker\u002Fpython:3.12-dhi\r\n```\r\n\r\n**Read SBOM:**\r\n```bash\r\ndocker sbom docker.io\u002Fdocker\u002Fpython:3.12-dhi\r\n```\r\n\r\n### Trivy Scanning (CI\u002FCD)\r\n\r\n```yaml\r\n- name: Scan for vulnerabilities\r\n  run: trivy image --severity HIGH,CRITICAL --exit-code 1 ${{ env.IMAGE }}\r\n```\r\n\r\n### Distroless Images (Alternative)\r\n\r\n```dockerfile\r\n# Python - use gcr.io\u002Fdistroless\u002Fpython3-debian12\r\nFROM gcr.io\u002Fdistroless\u002Fpython3-debian12\r\n# No shell, no package manager, runs as nonroot by default\r\n```\r\n\r\n### Multi-Arch Builds\r\n\r\n```yaml\r\n- uses: docker\u002Fbuild-push-action@v5\r\n  with:\r\n    platforms: linux\u002Famd64,linux\u002Farm64  # Build for both\r\n    cache-from: type=gha\r\n    cache-to: type=gha,mode=max\r\n```\r\n\r\n### BuildKit Secrets\r\n\r\n```dockerfile\r\n# Mount secrets during build (never stored in layers)\r\nRUN --mount=type=secret,id=npm_token \\\r\n    NPM_TOKEN=$(cat \u002Frun\u002Fsecrets\u002Fnpm_token) npm install\r\n```\r\n\r\nSee [references\u002Fproduction-security.md](references\u002Fproduction-security.md) for full patterns.\r\n\r\n## Verification\r\n\r\nRun: `python scripts\u002Fverify.py`\r\n\r\n## Related Skills\r\n\r\n- `operating-k8s-local` - Local Kubernetes with Minikube\r\n- `deploying-cloud-k8s` - Cloud Kubernetes deployment\r\n- `scaffolding-fastapi-dapr` - FastAPI patterns\r\n\r\n## References\r\n\r\n- [references\u002Fproduction-security.md](references\u002Fproduction-security.md) - Trivy, distroless, multi-arch, BuildKit secrets","# Containerizing Applications\r\n\r\n## Quick Start\r\n\r\n1. Run impact analysis first (env vars, network topology, auth\u002FCORS)\r\n2. Generate Dockerfiles using patterns below\r\n3. Create docker-compose.yml with proper networking\r\n4. Package as Helm chart for Kubernetes\r\n\r\n## Dockerfile Patterns\r\n\r\n### FastAPI\u002FPython (Multi-stage with uv)\r\n\r\n```dockerfile\r\n# syntax=docker\u002Fdockerfile:1\r\nFROM python:3.13-slim AS builder\r\nWORKDIR \u002Fapp\r\nRUN pip install uv\r\nCOPY pyproject.toml .\r\nRUN uv pip install --system --no-cache -r pyproject.toml\r\n\r\nFROM python:3.13-slim\r\nWORKDIR \u002Fapp\r\nCOPY --from=builder \u002Fusr\u002Flocal\u002Flib\u002Fpython3.13\u002Fsite-packages \u002Fusr\u002Flocal\u002Flib\u002Fpython3.13\u002Fsite-packages\r\nCOPY . .\r\nRUN useradd -u 1000 appuser && chown -R appuser \u002Fapp\r\nUSER appuser\r\nEXPOSE 8000\r\nCMD [\"uvicorn\", \"app.main:app\", \"--host\", \"0.0.0.0\", \"--port\", \"8000\"]\r\n```\r\n\r\n### Next.js (Standalone)\r\n\r\n```dockerfile\r\n# syntax=docker\u002Fdockerfile:1\r\nFROM node:20-alpine AS deps\r\nWORKDIR \u002Fapp\r\nCOPY package*.json .\u002F\r\nRUN npm ci\r\n\r\nFROM node:20-alpine AS builder\r\nWORKDIR \u002Fapp\r\nCOPY --from=deps \u002Fapp\u002Fnode_modules .\u002Fnode_modules\r\nCOPY . .\r\nARG NEXT_PUBLIC_API_URL\r\nARG NEXT_PUBLIC_SSO_URL\r\nENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL\r\nENV NEXT_PUBLIC_SSO_URL=$NEXT_PUBLIC_SSO_URL\r\nRUN npm run build\r\n\r\nFROM node:20-alpine AS runner\r\nWORKDIR \u002Fapp\r\nENV NODE_ENV=production\r\nRUN addgroup -g 1001 -S nodejs && adduser -S nextjs -u 1001\r\nCOPY --from=builder \u002Fapp\u002F.next\u002Fstandalone .\u002F\r\nCOPY --from=builder \u002Fapp\u002F.next\u002Fstatic .\u002F.next\u002Fstatic\r\nCOPY --from=builder \u002Fapp\u002Fpublic .\u002Fpublic\r\nUSER nextjs\r\nEXPOSE 3000\r\nCMD [\"node\", \"server.js\"]\r\n```\r\n\r\n## docker-compose Pattern\r\n\r\n```yaml\r\nservices:\r\n  web:\r\n    build:\r\n      context: .\u002Fweb\r\n      args:\r\n        # BROWSER: baked into JS bundle\r\n        - NEXT_PUBLIC_API_URL=http:\u002F\u002Flocalhost:8000\r\n    environment:\r\n      # SERVER: read at runtime inside container\r\n      - SERVER_API_URL=http:\u002F\u002Fapi:8000\r\n    ports:\r\n      - \"3000:3000\"\r\n    depends_on:\r\n      api:\r\n        condition: service_healthy\r\n\r\n  api:\r\n    build: .\u002Fapi\r\n    environment:\r\n      - DATABASE_URL=${DATABASE_URL}\r\n      - CORS_ORIGINS=http:\u002F\u002Flocalhost:3000,http:\u002F\u002Fweb:3000\r\n    ports:\r\n      - \"8000:8000\"\r\n    healthcheck:\r\n      test: [\"CMD\", \"curl\", \"-f\", \"http:\u002F\u002F127.0.0.1:8000\u002Fhealth\"]\r\n      interval: 30s\r\n      timeout: 10s\r\n      retries: 3\r\n      start_period: 40s\r\n```\r\n\r\n## Helm Chart Structure\r\n\r\n```\r\nhelm\u002Fmyapp\u002F\r\n├── Chart.yaml\r\n├── values.yaml\r\n├── templates\u002F\r\n│   ├── _helpers.tpl\r\n│   ├── deployment.yaml\r\n│   ├── service.yaml\r\n│   ├── configmap.yaml\r\n│   ├── secret.yaml\r\n│   └── ingress.yaml\r\n```\r\n\r\n### Chart.yaml\r\n\r\n```yaml\r\napiVersion: v2\r\nname: myapp\r\nversion: 1.0.0\r\nappVersion: \"1.0.0\"\r\n```\r\n\r\n### values.yaml Pattern\r\n\r\n```yaml\r\napi:\r\n  replicaCount: 1\r\n  image:\r\n    repository: myapp\u002Fapi\r\n    tag: latest\r\n    pullPolicy: IfNotPresent\r\n  service:\r\n    type: ClusterIP\r\n    port: 8000\r\n  resources:\r\n    limits:\r\n      cpu: 500m\r\n      memory: 512Mi\r\n```\r\n\r\n### Helm Commands\r\n\r\n```bash\r\nhelm create mychart              # Create new chart\r\nhelm template . --debug          # Render templates\r\nhelm install myapp .\u002Fchart       # Install\r\nhelm upgrade myapp .\u002Fchart       # Upgrade\r\nhelm install myapp .\u002Fchart \\\r\n  --set api.image.tag=v2.0.0     # Override values\r\n```\r\n\r\n## Battle-Tested Gotchas (15+)\r\n\r\n### 1. Browser vs Server URLs\r\n**Problem:** Browser runs on host, server runs in container\r\n```yaml\r\nbuild:\r\n  args:\r\n    - NEXT_PUBLIC_API_URL=http:\u002F\u002Flocalhost:8000   # Browser\r\nenvironment:\r\n  - SERVER_API_URL=http:\u002F\u002Fapi:8000                # Server\r\n```\r\n\r\n### 2. Healthcheck IPv6 Issue\r\n**Problem:** `wget http:\u002F\u002Flocalhost:3000` fails with IPv6\r\n```yaml\r\nhealthcheck:\r\n  test: [\"CMD\", \"wget\", \"--spider\", \"http:\u002F\u002F127.0.0.1:3000\u002F\"]  # NOT localhost!\r\n```\r\n\r\n### 3. MCP Server 421 Misdirected Request\r\n**Problem:** FastMCP rejects Docker service names\r\n```python\r\ntransport_security = TransportSecuritySettings(\r\n    allowed_hosts=[\"127.0.0.1:*\", \"localhost:*\", \"mcp-server:*\", \"0.0.0.0:*\"]\r\n)\r\n```\r\n\r\n### 4. SQLModel Tables Not Created\r\n**Problem:** Models not imported before `create_all()`\r\n```python\r\n# MUST import before create_all()\r\nfrom .models import User, Task, Project  # noqa: F401\r\nSQLModel.metadata.create_all(engine)\r\n```\r\n\r\n### 5. Database Migration Order\r\n**Problem:** Drizzle `db:push` drops tables not in schema\r\n**Solution:** Start postgres → Run Drizzle → Then start API\r\n\r\n### 6. uv Network Timeout\r\n```dockerfile\r\nRUN UV_HTTP_TIMEOUT=120 uv pip install --system --no-cache -r pyproject.toml\r\n```\r\n\r\n### 7. Missing Syntax Directive\r\n```dockerfile\r\n# syntax=docker\u002Fdockerfile:1    # ALWAYS first line\r\nFROM python:3.13-slim\r\n```\r\n\r\n### 8. localhost in Container\r\nUse Docker service names (api, web, sso) for server-side, NOT localhost\r\n\r\n### 9. Auth Origins\r\nAdd Docker service names to trustedOrigins BEFORE building\r\n\r\n### 10. Service Startup Order\r\nUse `depends_on` with `condition: service_healthy`\r\n\r\n### 11. Health Check Timing\r\nUse `start_period` (e.g., 40s) for apps that take time to start\r\n\r\n### 12. pgAdmin Email Validation\r\nUse valid email like `admin@example.com`, not `.local` domains\r\n\r\n### 13. Playwright in Dependencies\r\nKeep test tools in devDependencies (300MB+ bloat)\r\n\r\n### 14. MCP Health Check 406\r\nAdd separate `\u002Fhealth` endpoint via ASGI middleware\r\n\r\n### 15. Helm Comma Parsing\r\nUse values file instead of `--set` for comma-containing values\r\n\r\n## Production Security\r\n\r\n### Docker Hardened Images (Recommended)\r\n\r\n**95% fewer CVEs** than community images. Free under Apache 2.0.\r\n\r\n```dockerfile\r\n# BEFORE: Community image with unknown CVEs\r\nFROM python:3.12-slim\r\n\r\n# AFTER: Docker Hardened Image\r\nFROM docker.io\u002Fdocker\u002Fpython:3.12-dhi\r\n```\r\n\r\n**Five Pillars of DHI:**\r\n| Pillar | What You Get |\r\n|--------|--------------|\r\n| Minimal Attack Surface | 98% CVE reduction |\r\n| 100% Complete SBOM | SPDX\u002FCycloneDX format |\r\n| SLSA Build Level 3 | Verified provenance |\r\n| OpenVEX | Machine-readable vuln status |\r\n| Cosign Signatures | Cryptographic verification |\r\n\r\n**Verify signatures:**\r\n```bash\r\ncosign verify docker.io\u002Fdocker\u002Fpython:3.12-dhi\r\n```\r\n\r\n**Read SBOM:**\r\n```bash\r\ndocker sbom docker.io\u002Fdocker\u002Fpython:3.12-dhi\r\n```\r\n\r\n### Trivy Scanning (CI\u002FCD)\r\n\r\n```yaml\r\n- name: Scan for vulnerabilities\r\n  run: trivy image --severity HIGH,CRITICAL --exit-code 1 ${{ env.IMAGE }}\r\n```\r\n\r\n### Distroless Images (Alternative)\r\n\r\n```dockerfile\r\n# Python - use gcr.io\u002Fdistroless\u002Fpython3-debian12\r\nFROM gcr.io\u002Fdistroless\u002Fpython3-debian12\r\n# No shell, no package manager, runs as nonroot by default\r\n```\r\n\r\n### Multi-Arch Builds\r\n\r\n```yaml\r\n- uses: docker\u002Fbuild-push-action@v5\r\n  with:\r\n    platforms: linux\u002Famd64,linux\u002Farm64  # Build for both\r\n    cache-from: type=gha\r\n    cache-to: type=gha,mode=max\r\n```\r\n\r\n### BuildKit Secrets\r\n\r\n```dockerfile\r\n# Mount secrets during build (never stored in layers)\r\nRUN --mount=type=secret,id=npm_token \\\r\n    NPM_TOKEN=$(cat \u002Frun\u002Fsecrets\u002Fnpm_token) npm install\r\n```\r\n\r\nSee [references\u002Fproduction-security.md](references\u002Fproduction-security.md) for full patterns.\r\n\r\n## Verification\r\n\r\nRun: `python scripts\u002Fverify.py`\r\n\r\n## Related Skills\r\n\r\n- `operating-k8s-local` - Local Kubernetes with Minikube\r\n- `deploying-cloud-k8s` - Cloud Kubernetes deployment\r\n- `scaffolding-fastapi-dapr` - FastAPI patterns\r\n\r\n## References\r\n\r\n- [references\u002Fproduction-security.md](references\u002Fproduction-security.md) - Trivy, distroless, multi-arch, BuildKit secrets",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fasmayaseen\u002Fcontainerizing-applications",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill containerizing-applications",{"tool":52,"command":53},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill containerizing-applications",{"tool":55,"command":56},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill containerizing-applications","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fasmayaseen\u002Fcontainerizing-applications\u002FSKILL.md",true,[60,66,72],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fproduction-security.md","REFERENCE","参考文档",5219,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fasmayaseen\u002Fcontainerizing-applications\u002Freferences\u002Fproduction-security.md",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Fverify.py","SCRIPT","脚本",1032,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fasmayaseen\u002Fcontainerizing-applications\u002Fscripts\u002Fverify.py",{"path":73,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":74,"sourceHtmlUrl":75},"skill-report.json",8687,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fasmayaseen\u002Fcontainerizing-applications\u002Fskill-report.json",[77,86,95,104,110,116],{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":32},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[83,84,85],"model","model hierarchy","model hierarchy skill",{"skillNo":87,"name":88,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":32},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[92,93,94],"MCP","zoom","zoom mcp",{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":32},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[101,102,103,93],"sdk","zoom apps sdk","apps",{"skillNo":105,"name":106,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":32},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[106],{"skillNo":111,"name":112,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":32},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[112],{"skillNo":117,"name":118,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":32},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[118]]