[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C5NW41QVTHW5XG3G62D1JC":3,"skill-same:01M6C5NW41QVTHW5XG3G62D1JC":85},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":53,"linkOnly":54,"markdownContent":55,"markdownBody":56,"frontMatter":57,"refName":63,"commitSha":64,"skillDirectory":65,"forksCount":66,"repositoryHtmlUrl":67,"repositoryHomepageUrl":17,"ownerHtmlUrl":68,"ownerBlogUrl":17,"ownerDescription":69,"updatedAt":70,"install":71,"resources":84},"01M6C5NW41QVTHW5XG3G62D1JC","configure-dockerfile","Dockerfile 配置与镜像优化","Dockerfile standards: Alpine\u002Fslim base, non-root user, multi-stage builds. Use when creating a Dockerfile, hardening security, or auditing image size.","Dockerfile 标准：Alpine\u002Fslim 基础镜像、非 root 用户、多阶段构建。适用于创建 Dockerfile、安全加固或审计镜像大小。","laurigates\u002Fclaude-plugins","laurigates","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F13014001?v=4","01M6C59YHWS9C7KMXKSRX1YXNP","Lauri Gates","01M6C59YP2APG9YAM4DWYQYGFJ",60,"MIT",null,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fconfigure-plugin\u002Fskills\u002Fconfigure-dockerfile\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9076S7ETYWTQVVK45G","云原生计算与容器编排","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],"dockerfile","configure","configure dockerfile","2026","when","stage","websearch","2025","security","go","edit","write","read","check","image","use","only","frontend","python","fix","rust","standards","2026-11-10 10:12:30",false,"---\ncreated: 2025-12-16\nmodified: 2026-11-11\nreviewed: 2026-06-01\ndescription: \"Dockerfile standards: Alpine\u002Fslim base, non-root user, multi-stage builds. Use when creating a Dockerfile, hardening security, or auditing image size.\"\nallowed-tools: Glob, Grep, Read, Write, Edit, AskUserQuestion, TodoWrite, WebSearch, WebFetch\nargs: \"[--check-only] [--fix] [--type \u003Cfrontend|python|go|rust>]\"\nargument-hint: \"[--check-only] [--fix] [--type \u003Cfrontend|python|go|rust>]\"\nname: configure-dockerfile\n---\n\n# \u002Fconfigure:dockerfile\n\nCheck and configure Dockerfile against project standards with emphasis on **minimal images**, **non-root users**, and **multi-stage builds**.\n\n## When to Use This Skill\n\n| Use this skill when... | Use another approach when... |\n|------------------------|------------------------------|\n| Checking Dockerfile compliance with standards | Just viewing Dockerfile (use Read tool) |\n| Creating Dockerfile from template | Dockerfile already follows all standards |\n| Validating image size, security, multi-stage builds | Need container runtime config (use `\u002Fconfigure:container`) |\n| Setting up minimal Alpine\u002Fslim-based images | Project uses specialized base images (custom requirements) |\n| Ensuring non-root user configuration | Debugging container issues (check logs, inspect runtime) |\n\n## Context\n\n- Dockerfiles: !`find . -maxdepth 1 \\( -name 'Dockerfile' -o -name 'Dockerfile.*' -o -name '*.Dockerfile' \\)`\n- Dockerignore: !`find . -maxdepth 1 -name '.dockerignore'`\n- Project type: !`find . -maxdepth 1 \\( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' -o -name 'go.mod' \\) -print -quit`\n- Base images: !`find . -maxdepth 1 \\( -name 'Dockerfile' -o -name 'Dockerfile.*' -o -name '*.Dockerfile' \\) -exec grep -hm5 '^FROM' {} +`\n\n## Parameters\n\nParse from command arguments:\n\n- `--check-only`: Report compliance status without modifications\n- `--fix`: Apply fixes automatically without prompting\n- `--type \u003Ctype>`: Override project type detection (frontend, python, go, rust)\n\n## Execution\n\nExecute this Dockerfile compliance check:\n\n### Step 1: Detect project type and Dockerfiles\n\n1. Find Dockerfile(s) in project root\n2. Detect project type from context (package.json, pyproject.toml, go.mod, Cargo.toml)\n3. Parse Dockerfile to analyze current configuration\n4. Apply `--type` override if provided\n\n### Step 2: Verify latest base image versions\n\nBefore flagging outdated base images, use WebSearch or WebFetch to verify latest versions:\n\n1. **Node.js Alpine**: Check Docker Hub for latest LTS Alpine tags\n2. **Python slim**: Check Docker Hub for latest slim tags\n3. **nginx Alpine**: Check Docker Hub for latest Alpine tags\n4. **Go Alpine**: Check Docker Hub for latest Alpine tags\n5. **Rust Alpine**: Check Docker Hub for latest Alpine tags\n\n### Step 3: Analyze compliance\n\nCheck the Dockerfile against these standards:\n\n**Frontend (Node.js) Standards:**\n\n| Check | Standard | Severity |\n|-------|----------|----------|\n| Build base | `node:24-alpine` (LTS) | WARN if other |\n| Runtime base | `nginx:1.30-alpine` | WARN if other |\n| Multi-stage | Required | FAIL if missing |\n| HEALTHCHECK | Required | FAIL if missing |\n| Non-root user | Required | FAIL if missing |\n| Build caching | `--mount=type=cache` recommended | INFO |\n| OCI Labels | Required for GHCR integration | WARN if missing |\n\n**Python Service Standards:**\n\n| Check | Standard | Severity |\n|-------|----------|----------|\n| Base image | `python:3.14-slim` | WARN if other |\n| Multi-stage | Required for production | FAIL if missing |\n| HEALTHCHECK | Required | FAIL if missing |\n| Non-root user | Required | FAIL if missing |\n| OCI Labels | Required for GHCR integration | WARN if missing |\n\n**OCI Container Labels:**\n\n| Label | Purpose | Severity |\n|-------|---------|----------|\n| `org.opencontainers.image.source` | Links to repository | WARN if missing |\n| `org.opencontainers.image.description` | Package description | WARN if missing |\n| `org.opencontainers.image.licenses` | SPDX license identifier | WARN if missing |\n| `org.opencontainers.image.version` | Semantic version (via ARG) | INFO if missing |\n| `org.opencontainers.image.revision` | Git commit SHA (via ARG) | INFO if missing |\n\n### Step 4: Report results\n\nPrint a compliance report:\n\n```\nDockerfile Compliance Report\n================================\nProject Type: \u003Ctype> (detected)\nDockerfile: .\u002FDockerfile (found)\n\nConfiguration Checks:\n  Build base      \u003Cimage>           [PASS|WARN]\n  Runtime base    \u003Cimage>           [PASS|WARN]\n  Multi-stage     \u003CN> stages        [PASS|FAIL]\n  HEALTHCHECK     \u003Cpresent|missing> [PASS|FAIL]\n  Non-root user   \u003Cpresent|missing> [PASS|FAIL]\n  Build caching   \u003Cenabled|missing> [PASS|INFO]\n\nOCI Labels Checks:\n  image.source       \u003Cpresent|missing> [PASS|WARN]\n  image.description  \u003Cpresent|missing> [PASS|WARN]\n  image.licenses     \u003Cpresent|missing> [PASS|WARN]\n\nRecommendations:\n  \u003Clist specific fixes needed>\n```\n\nIf `--check-only`, stop here.\n\n### Step 5: Apply fixes (if requested)\n\nIf `--fix` flag is set or user confirms:\n\n1. **Missing Dockerfile**: Create from standard template (see Standard Templates below)\n2. **Missing HEALTHCHECK**: Add standard healthcheck\n3. **Missing multi-stage**: Suggest restructure (manual fix needed)\n4. **Outdated base images**: Update FROM lines\n5. **Missing OCI labels**: Add LABEL instructions\n\n### Step 6: Update standards tracking\n\nUpdate `.project-standards.yaml`:\n\n```yaml\ncomponents:\n  dockerfile: \"2025.1\"\n```\n\n## Standard Templates\n\n### Frontend (Node\u002FVite\u002Fnginx)\n\n```dockerfile\nFROM node:24-alpine AS build\n\nARG SENTRY_AUTH_TOKEN\nARG VITE_SENTRY_DSN\n\nWORKDIR \u002Fapp\n\nCOPY package*.json .\u002F\nRUN --mount=type=cache,target=\u002Froot\u002F.npm npm ci\n\nCOPY . .\nRUN --mount=type=cache,target=\u002Froot\u002F.npm \\\n    --mount=type=cache,target=\u002Fapp\u002Fnode_modules\u002F.vite \\\n    npm run build\n\nFROM nginx:1.30-alpine\n\n# OCI labels for GHCR integration\nLABEL org.opencontainers.image.source=\"https:\u002F\u002Fgithub.com\u002FOWNER\u002FREPO\" \\\n      org.opencontainers.image.description=\"Production frontend application\" \\\n      org.opencontainers.image.licenses=\"MIT\" \\\n      org.opencontainers.image.vendor=\"Your Organization\"\n\n# Dynamic labels via build args\nARG VERSION=dev\nARG BUILD_DATE\nARG VCS_REF\nLABEL org.opencontainers.image.version=\"${VERSION}\" \\\n      org.opencontainers.image.created=\"${BUILD_DATE}\" \\\n      org.opencontainers.image.revision=\"${VCS_REF}\"\n\nCOPY --from=build \u002Fapp\u002Fdist \u002Fusr\u002Fshare\u002Fnginx\u002Fhtml\nCOPY nginx\u002Fdefault.conf.template \u002Fetc\u002Fnginx\u002Ftemplates\u002F\n\nEXPOSE 80\n\nHEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \\\n  CMD wget --no-verbose --tries=1 --spider http:\u002F\u002Flocalhost\u002Fhealth || exit 1\n```\n\n### Python Service\n\n```dockerfile\nFROM python:3.14-slim AS builder\n\nWORKDIR \u002Fapp\nCOPY pyproject.toml uv.lock .\u002F\nRUN pip install uv && uv sync --frozen --no-dev\n\nFROM python:3.14-slim\n\n# OCI labels for GHCR integration\nLABEL org.opencontainers.image.source=\"https:\u002F\u002Fgithub.com\u002FOWNER\u002FREPO\" \\\n      org.opencontainers.image.description=\"Production Python API server\" \\\n      org.opencontainers.image.licenses=\"MIT\" \\\n      org.opencontainers.image.vendor=\"Your Organization\"\n\nARG VERSION=dev\nARG BUILD_DATE\nARG VCS_REF\nLABEL org.opencontainers.image.version=\"${VERSION}\" \\\n      org.opencontainers.image.created=\"${BUILD_DATE}\" \\\n      org.opencontainers.image.revision=\"${VCS_REF}\"\n\nRUN useradd --create-home appuser\nUSER appuser\nWORKDIR \u002Fapp\n\nCOPY --from=builder \u002Fapp\u002F.venv \u002Fapp\u002F.venv\nCOPY --chown=appuser:appuser . .\n\nENV PATH=\"\u002Fapp\u002F.venv\u002Fbin:$PATH\"\nEXPOSE 8000\n\nHEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \\\n  CMD curl -f http:\u002F\u002Flocalhost:8000\u002Fhealth || exit 1\n\nCMD [\"uvicorn\", \"app.main:app\", \"--host\", \"0.0.0.0\", \"--port\", \"8000\"]\n```\n\n### Trivy Gate Fails on a CVE Debian Already Fixed\n\nA Debian-based tag (`python:3.x-slim`) can lag a package fix Debian has\nalready published, and a Trivy gate with `--ignore-unfixed` still fails on it.\nUpgrade packages in the runtime stage, before `USER` (it needs root):\n\n```dockerfile\nRUN apt-get update && apt-get upgrade -y --no-install-recommends && rm -rf \u002Fvar\u002Flib\u002Fapt\u002Flists\u002F*\n```\n\nVerify the rebuilt image with the gate's own scope:\n\n```bash\ntrivy image --scanners vuln --severity HIGH,CRITICAL --ignore-unfixed --exit-code 1 \u003Cimage>\n```\n\nA bare `trivy image` also runs the secret scanner, which can flag strings\ninside installed packages (docstrings in the `anthropic` SDK read as GCP\nservice-account keys). Those findings are outside a vuln-only gate.\n\n> Evidence (2026-11-10, telegram-ingest v0.1.1): `python:3.12-slim-trixie`\n> still had `zlib1g 1:1.3.dfsg+really1.3.1-1+b1` (CVE-2026-76844,\n> CVE-2026-85091); Debian's fix is `+deb13u1`. The upgrade step cleared the\n> gate (telegram-ingest#29).\n\n## Agentic Optimizations\n\n| Context | Command |\n|---------|---------|\n| Check Dockerfile exists | `find . -maxdepth 1 \\( -name 'Dockerfile' -o -name 'Dockerfile.*' \\) 2>\u002Fdev\u002Fnull` |\n| Validate multi-stage build | `grep -c '^FROM' Dockerfile 2>\u002Fdev\u002Fnull` |\n| Check for non-root user | `grep -E '^USER [^root]' Dockerfile 2>\u002Fdev\u002Fnull` |\n| Check base image | `grep '^FROM' Dockerfile \\| head -1` |\n| Quick compliance check | `\u002Fconfigure:dockerfile --check-only` |\n| Auto-fix issues | `\u002Fconfigure:dockerfile --fix` |\n\n## Flags\n\n| Flag | Description |\n|------|-------------|\n| `--check-only` | Report status without offering fixes |\n| `--fix` | Apply fixes automatically |\n| `--type \u003Ctype>` | Override project type (frontend, python) |\n\n## Notes\n\n- Node 24 is current Active LTS (Node 22 in maintenance)\n- nginx:1.30-alpine preferred over debian variant\n- HEALTHCHECK is critical for Kubernetes liveness probes\n- Build caching significantly improves CI\u002FCD speed\n- Non-root user is mandatory for production containers\n\n## See Also\n\n- `\u002Fconfigure:container` - Comprehensive container infrastructure\n- `\u002Fconfigure:skaffold` - Kubernetes development configuration\n- `\u002Fconfigure:all` - Run all compliance checks\n- `container-development` skill - Container best practices\n","# \u002Fconfigure:dockerfile\n\nCheck and configure Dockerfile against project standards with emphasis on **minimal images**, **non-root users**, and **multi-stage builds**.\n\n## When to Use This Skill\n\n| Use this skill when... | Use another approach when... |\n|------------------------|------------------------------|\n| Checking Dockerfile compliance with standards | Just viewing Dockerfile (use Read tool) |\n| Creating Dockerfile from template | Dockerfile already follows all standards |\n| Validating image size, security, multi-stage builds | Need container runtime config (use `\u002Fconfigure:container`) |\n| Setting up minimal Alpine\u002Fslim-based images | Project uses specialized base images (custom requirements) |\n| Ensuring non-root user configuration | Debugging container issues (check logs, inspect runtime) |\n\n## Context\n\n- Dockerfiles: !`find . -maxdepth 1 \\( -name 'Dockerfile' -o -name 'Dockerfile.*' -o -name '*.Dockerfile' \\)`\n- Dockerignore: !`find . -maxdepth 1 -name '.dockerignore'`\n- Project type: !`find . -maxdepth 1 \\( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' -o -name 'go.mod' \\) -print -quit`\n- Base images: !`find . -maxdepth 1 \\( -name 'Dockerfile' -o -name 'Dockerfile.*' -o -name '*.Dockerfile' \\) -exec grep -hm5 '^FROM' {} +`\n\n## Parameters\n\nParse from command arguments:\n\n- `--check-only`: Report compliance status without modifications\n- `--fix`: Apply fixes automatically without prompting\n- `--type \u003Ctype>`: Override project type detection (frontend, python, go, rust)\n\n## Execution\n\nExecute this Dockerfile compliance check:\n\n### Step 1: Detect project type and Dockerfiles\n\n1. Find Dockerfile(s) in project root\n2. Detect project type from context (package.json, pyproject.toml, go.mod, Cargo.toml)\n3. Parse Dockerfile to analyze current configuration\n4. Apply `--type` override if provided\n\n### Step 2: Verify latest base image versions\n\nBefore flagging outdated base images, use WebSearch or WebFetch to verify latest versions:\n\n1. **Node.js Alpine**: Check Docker Hub for latest LTS Alpine tags\n2. **Python slim**: Check Docker Hub for latest slim tags\n3. **nginx Alpine**: Check Docker Hub for latest Alpine tags\n4. **Go Alpine**: Check Docker Hub for latest Alpine tags\n5. **Rust Alpine**: Check Docker Hub for latest Alpine tags\n\n### Step 3: Analyze compliance\n\nCheck the Dockerfile against these standards:\n\n**Frontend (Node.js) Standards:**\n\n| Check | Standard | Severity |\n|-------|----------|----------|\n| Build base | `node:24-alpine` (LTS) | WARN if other |\n| Runtime base | `nginx:1.30-alpine` | WARN if other |\n| Multi-stage | Required | FAIL if missing |\n| HEALTHCHECK | Required | FAIL if missing |\n| Non-root user | Required | FAIL if missing |\n| Build caching | `--mount=type=cache` recommended | INFO |\n| OCI Labels | Required for GHCR integration | WARN if missing |\n\n**Python Service Standards:**\n\n| Check | Standard | Severity |\n|-------|----------|----------|\n| Base image | `python:3.14-slim` | WARN if other |\n| Multi-stage | Required for production | FAIL if missing |\n| HEALTHCHECK | Required | FAIL if missing |\n| Non-root user | Required | FAIL if missing |\n| OCI Labels | Required for GHCR integration | WARN if missing |\n\n**OCI Container Labels:**\n\n| Label | Purpose | Severity |\n|-------|---------|----------|\n| `org.opencontainers.image.source` | Links to repository | WARN if missing |\n| `org.opencontainers.image.description` | Package description | WARN if missing |\n| `org.opencontainers.image.licenses` | SPDX license identifier | WARN if missing |\n| `org.opencontainers.image.version` | Semantic version (via ARG) | INFO if missing |\n| `org.opencontainers.image.revision` | Git commit SHA (via ARG) | INFO if missing |\n\n### Step 4: Report results\n\nPrint a compliance report:\n\n```\nDockerfile Compliance Report\n================================\nProject Type: \u003Ctype> (detected)\nDockerfile: .\u002FDockerfile (found)\n\nConfiguration Checks:\n  Build base      \u003Cimage>           [PASS|WARN]\n  Runtime base    \u003Cimage>           [PASS|WARN]\n  Multi-stage     \u003CN> stages        [PASS|FAIL]\n  HEALTHCHECK     \u003Cpresent|missing> [PASS|FAIL]\n  Non-root user   \u003Cpresent|missing> [PASS|FAIL]\n  Build caching   \u003Cenabled|missing> [PASS|INFO]\n\nOCI Labels Checks:\n  image.source       \u003Cpresent|missing> [PASS|WARN]\n  image.description  \u003Cpresent|missing> [PASS|WARN]\n  image.licenses     \u003Cpresent|missing> [PASS|WARN]\n\nRecommendations:\n  \u003Clist specific fixes needed>\n```\n\nIf `--check-only`, stop here.\n\n### Step 5: Apply fixes (if requested)\n\nIf `--fix` flag is set or user confirms:\n\n1. **Missing Dockerfile**: Create from standard template (see Standard Templates below)\n2. **Missing HEALTHCHECK**: Add standard healthcheck\n3. **Missing multi-stage**: Suggest restructure (manual fix needed)\n4. **Outdated base images**: Update FROM lines\n5. **Missing OCI labels**: Add LABEL instructions\n\n### Step 6: Update standards tracking\n\nUpdate `.project-standards.yaml`:\n\n```yaml\ncomponents:\n  dockerfile: \"2025.1\"\n```\n\n## Standard Templates\n\n### Frontend (Node\u002FVite\u002Fnginx)\n\n```dockerfile\nFROM node:24-alpine AS build\n\nARG SENTRY_AUTH_TOKEN\nARG VITE_SENTRY_DSN\n\nWORKDIR \u002Fapp\n\nCOPY package*.json .\u002F\nRUN --mount=type=cache,target=\u002Froot\u002F.npm npm ci\n\nCOPY . .\nRUN --mount=type=cache,target=\u002Froot\u002F.npm \\\n    --mount=type=cache,target=\u002Fapp\u002Fnode_modules\u002F.vite \\\n    npm run build\n\nFROM nginx:1.30-alpine\n\n# OCI labels for GHCR integration\nLABEL org.opencontainers.image.source=\"https:\u002F\u002Fgithub.com\u002FOWNER\u002FREPO\" \\\n      org.opencontainers.image.description=\"Production frontend application\" \\\n      org.opencontainers.image.licenses=\"MIT\" \\\n      org.opencontainers.image.vendor=\"Your Organization\"\n\n# Dynamic labels via build args\nARG VERSION=dev\nARG BUILD_DATE\nARG VCS_REF\nLABEL org.opencontainers.image.version=\"${VERSION}\" \\\n      org.opencontainers.image.created=\"${BUILD_DATE}\" \\\n      org.opencontainers.image.revision=\"${VCS_REF}\"\n\nCOPY --from=build \u002Fapp\u002Fdist \u002Fusr\u002Fshare\u002Fnginx\u002Fhtml\nCOPY nginx\u002Fdefault.conf.template \u002Fetc\u002Fnginx\u002Ftemplates\u002F\n\nEXPOSE 80\n\nHEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \\\n  CMD wget --no-verbose --tries=1 --spider http:\u002F\u002Flocalhost\u002Fhealth || exit 1\n```\n\n### Python Service\n\n```dockerfile\nFROM python:3.14-slim AS builder\n\nWORKDIR \u002Fapp\nCOPY pyproject.toml uv.lock .\u002F\nRUN pip install uv && uv sync --frozen --no-dev\n\nFROM python:3.14-slim\n\n# OCI labels for GHCR integration\nLABEL org.opencontainers.image.source=\"https:\u002F\u002Fgithub.com\u002FOWNER\u002FREPO\" \\\n      org.opencontainers.image.description=\"Production Python API server\" \\\n      org.opencontainers.image.licenses=\"MIT\" \\\n      org.opencontainers.image.vendor=\"Your Organization\"\n\nARG VERSION=dev\nARG BUILD_DATE\nARG VCS_REF\nLABEL org.opencontainers.image.version=\"${VERSION}\" \\\n      org.opencontainers.image.created=\"${BUILD_DATE}\" \\\n      org.opencontainers.image.revision=\"${VCS_REF}\"\n\nRUN useradd --create-home appuser\nUSER appuser\nWORKDIR \u002Fapp\n\nCOPY --from=builder \u002Fapp\u002F.venv \u002Fapp\u002F.venv\nCOPY --chown=appuser:appuser . .\n\nENV PATH=\"\u002Fapp\u002F.venv\u002Fbin:$PATH\"\nEXPOSE 8000\n\nHEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \\\n  CMD curl -f http:\u002F\u002Flocalhost:8000\u002Fhealth || exit 1\n\nCMD [\"uvicorn\", \"app.main:app\", \"--host\", \"0.0.0.0\", \"--port\", \"8000\"]\n```\n\n### Trivy Gate Fails on a CVE Debian Already Fixed\n\nA Debian-based tag (`python:3.x-slim`) can lag a package fix Debian has\nalready published, and a Trivy gate with `--ignore-unfixed` still fails on it.\nUpgrade packages in the runtime stage, before `USER` (it needs root):\n\n```dockerfile\nRUN apt-get update && apt-get upgrade -y --no-install-recommends && rm -rf \u002Fvar\u002Flib\u002Fapt\u002Flists\u002F*\n```\n\nVerify the rebuilt image with the gate's own scope:\n\n```bash\ntrivy image --scanners vuln --severity HIGH,CRITICAL --ignore-unfixed --exit-code 1 \u003Cimage>\n```\n\nA bare `trivy image` also runs the secret scanner, which can flag strings\ninside installed packages (docstrings in the `anthropic` SDK read as GCP\nservice-account keys). Those findings are outside a vuln-only gate.\n\n> Evidence (2026-11-10, telegram-ingest v0.1.1): `python:3.12-slim-trixie`\n> still had `zlib1g 1:1.3.dfsg+really1.3.1-1+b1` (CVE-2026-76844,\n> CVE-2026-85091); Debian's fix is `+deb13u1`. The upgrade step cleared the\n> gate (telegram-ingest#29).\n\n## Agentic Optimizations\n\n| Context | Command |\n|---------|---------|\n| Check Dockerfile exists | `find . -maxdepth 1 \\( -name 'Dockerfile' -o -name 'Dockerfile.*' \\) 2>\u002Fdev\u002Fnull` |\n| Validate multi-stage build | `grep -c '^FROM' Dockerfile 2>\u002Fdev\u002Fnull` |\n| Check for non-root user | `grep -E '^USER [^root]' Dockerfile 2>\u002Fdev\u002Fnull` |\n| Check base image | `grep '^FROM' Dockerfile \\| head -1` |\n| Quick compliance check | `\u002Fconfigure:dockerfile --check-only` |\n| Auto-fix issues | `\u002Fconfigure:dockerfile --fix` |\n\n## Flags\n\n| Flag | Description |\n|------|-------------|\n| `--check-only` | Report status without offering fixes |\n| `--fix` | Apply fixes automatically |\n| `--type \u003Ctype>` | Override project type (frontend, python) |\n\n## Notes\n\n- Node 24 is current Active LTS (Node 22 in maintenance)\n- nginx:1.30-alpine preferred over debian variant\n- HEALTHCHECK is critical for Kubernetes liveness probes\n- Build caching significantly improves CI\u002FCD speed\n- Non-root user is mandatory for production containers\n\n## See Also\n\n- `\u002Fconfigure:container` - Comprehensive container infrastructure\n- `\u002Fconfigure:skaffold` - Kubernetes development configuration\n- `\u002Fconfigure:all` - Run all compliance checks\n- `container-development` skill - Container best practices\n",{"args":58,"name":5,"created":59,"modified":60,"reviewed":61,"description":7,"allowed-tools":62,"argument-hint":58},"[--check-only] [--fix] [--type \u003Cfrontend|python|go|rust>]",1765843200000,1794355200000,1780272000000,"Glob, Grep, Read, Write, Edit, AskUserQuestion, TodoWrite, WebSearch, WebFetch","main","34a98323c28903fa045a495d64f8600467050ed5","configure-plugin\u002Fskills\u002Fconfigure-dockerfile",6,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins","https:\u002F\u002Fgithub.com\u002Flaurigates","Linux enthusiast, cloud engineer, neovim addict, electronics hobbyist.","2026-11-15 03:36:11",{"source":9,"skillName":5,"commands":72,"prompt":82,"zipAvailable":83},[73,76,79],{"tool":74,"command":75},"npx","npx skills add laurigates\u002Fclaude-plugins --skill configure-dockerfile",{"tool":77,"command":78},"bunx","bunx skills add laurigates\u002Fclaude-plugins --skill configure-dockerfile",{"tool":80,"command":81},"pnpm","pnpm dlx skills add laurigates\u002Fclaude-plugins --skill configure-dockerfile","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fconfigure-plugin\u002Fskills\u002Fconfigure-dockerfile\u002FSKILL.md",true,[],[86,94,116,135,151,173],{"skillNo":87,"name":88,"nameZh":17,"description":89,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":93},"01M7DS1CAJ1ESDX08PENF01J0S","session-workflow-capture","Workflow-tool scripts and workflow friction from this session, filed as issues here or in the plugins repo. Use when a session ran Workflow scripts.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fsession-plugin\u002Fskills\u002Fsession-workflow-capture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":95,"name":96,"nameZh":17,"description":97,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":53},"01M70PFHMH9ADY0CRE6047Y4B2","kitty-show-image","Show the user an image with a note on what to judge, via a file send or a labelled kitty tab. Use when the user must see an image, or icat fails with no \u002Fdev\u002Ftty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-show-image\u002FSKILL.md",[],[101,102,45,103,104,105,106,107,108,109,46,35,110,111,112,113,114,115,34,43],"show","kitty show image","kitty","show image","ls","get","send","open","dev","Bash","file","text","with","xdg","via",{"skillNo":117,"name":118,"nameZh":17,"description":119,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":53},"01M70PFEN18HKQ4RCQ1VPGMPTB","kitty-session-persistence","Snapshot and restore kitty terminal sessions on macOS. Use when surviving WindowServer hangs without losing tabs, configuring snapshots, or restoring after a force-reboot.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-session-persistence\u002FSKILL.md",[],[103,123,124,125,126,127,35,110,128,129,130,34,43,42,41,131,132,133,134,46],"kitty session persistence","session","persistence","false","snapshots","uname","reboot","terminal","snapshot","macos","sessions","restore",{"skillNo":136,"name":137,"nameZh":17,"description":138,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":53},"01M70PFC77XGXCVQ1543VGZHYR","kitty-remote-control","Safe kitty remote control from an agent — read panes with kitty @ ls\u002Fget-text, notify, and never mutate the live terminal unasked. Use when running inside kitty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-remote-control\u002FSKILL.md",[],[142,143,103,144,145,105,146,147,106,148,149,46,35,150,110,112,113,130,34,43],"kitty remote control","remote","control","remote control","running","never","panes","notify","query",{"skillNo":152,"name":153,"nameZh":17,"description":154,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":53},"01M70P6WVMCT5JG4SACTM69AF9","docs-reference-check","Dangling doc-reference gate: flag markdown naming repo paths or relative links that no longer exist. Use when docs cite moved\u002Fdeleted files, or wiring a doc-drift lint.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fdocumentation-plugin\u002Fskills\u002Fdocs-reference-check\u002FSKILL.md",[],[158,44,159,160,161,162,163,164,165,166,46,35,110,167,111,168,169,170,171,172],"docs reference check","reference check","reference","docs","links","python3","repo","files","auto","drift","lint","wiring","chezmoi","references","cp",{"skillNo":174,"name":175,"nameZh":176,"description":177,"descriptionZh":178,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":179,"categories":180,"keywords":187,"publishedAt":53},"01M6C6NDE7DAQGNWSF22J5CJ0Z","youtube-upload","YouTube 视频上传与编辑","Upload a video to YouTube via the Data API v3 and edit its title, description, tags or thumbnail afterwards. Use when publishing or retitling a YouTube video.","通过 Data API v3 将视频上传到 YouTube，并在之后编辑其标题、描述、标签或缩略图。适用于发布 YouTube 视频或修改其标题。","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fyoutube-plugin\u002Fskills\u002Fyoutube-upload\u002FSKILL.md",[181,184],{"categoryNo":182,"categoryName":183,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98WRP4APE9VKKKKJ6FV","社交媒体与内容平台管理",{"categoryNo":185,"categoryName":186,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",[188,189,190,191,163,192,43,193,41,194,195,196,46,110,111,197,198,35,199,200,201,115,34],"youtube upload","upload","youtube","Video","run","uv run","publishing","data","uv","api","v3","tags","id","title"]