docker-cloudrun

docker-cloudrun is a skill for Claude Code from hamzaPixl/pixl-ai. It costs 43 tokens per session (665 once invoked), scanned A, original, MIT.

A workflow that packages an application in Docker and prepares local Docker Compose setup plus GitHub Actions deployment to Google Cloud Run.

In plain words
What is it for?
Use it to containerize an application, create a multi-stage Dockerfile, configure local development, and build a Cloud Run deployment pipeline.
Why use it?
It turns application-container setup and deployment configuration into a defined process, including runtime and security checks.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the pixl-crew plugin — 93 skills, 14 agents, 6 hooks shipped together

Good fit Use it to containerize an application, create a multi-stage Dockerfile, configure local development, and build a Cloud Run deployment pipeline.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzapixl/pixl-ai/docker-cloudrun
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzaPixl/pixl-ai --skill docker-cloudrun
Clone the repo
git clone --depth 1 https://github.com/hamzaPixl/pixl-ai

Made for: Claude Code.

Or install pixl-crew, the plugin that ships this one along with the rest of its 93 skills, 14 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docker-cloudrun

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzapixl/pixl-ai/docker-cloudrun.svg)](https://agentmods.dev/skills/hamzapixl/pixl-ai/docker-cloudrun)
Your own site
<a href="https://agentmods.dev/skills/hamzapixl/pixl-ai/docker-cloudrun"><img src="https://agentmods.dev/badge/skills/hamzapixl/pixl-ai/docker-cloudrun.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 665 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.00665
Opus 5 $0.00022 $0.00332
Sonnet 5 $0.00009 $0.00133
Haiku 4.5 $0.00004 $0.00067

Measured 7d ago against content hash 847ad573eb0a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

docker-cloudrun scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/crew/skills/docker-cloudrun/SKILL.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Overview

Containerizes an application with Docker and creates a complete Cloud Run deployment pipeline including multi-stage Dockerfile, docker-compose for local development, and GitHub Actions CI/CD.

Why multi-stage builds: Separating build and runtime stages reduces image size by 60-80% (no compiler, dev deps) and shrinks the attack surface. Running as a non-root user prevents container escape exploits from gaining host-level access.

Required References

Before starting, read these files:

  • references/devops/docker-best-practices.md — Dockerfile patterns, layer caching, security
  • references/devops/ci-cd-patterns.md — CI/CD pipeline patterns and deployment strategies

Step 1: Discovery

  1. Detect application language, framework, and build system
  2. Identify environment variables and secrets needed
  3. Check for existing Docker configuration
  4. Determine Cloud Run requirements (CPU, memory, scaling)

Step 2: Dockerfile

  1. Create multi-stage Dockerfile (deps → build → production)
  2. Optimize for layer caching
  3. Pin base image versions
  4. Run as non-root user
  5. Add .dockerignore

Step 3: Docker Compose

  1. Create docker-compose.yaml for local development
  2. Add service dependencies (database, Redis, etc.)
  3. Configure health checks
  4. Mount source for hot reload in development

Step 4: Cloud Run Deployment

  1. Create GitHub Actions workflow for Cloud Run
  2. Configure GCP authentication
  3. Set up environment variables and secrets
  4. Configure auto-scaling, min/max instances
  5. Add staging and production environments

Gotchas

  • Cloud Run requires the container to listen on the PORT environment variable (not hardcoded ports) — the service will fail health checks and never become healthy if the port is hardcoded
  • Multi-stage builds must copy only production dependencies — copying devDependencies or test files into the runtime stage bloats the image and leaks build tooling
  • Cloud Run cold starts are proportional to image size — keep the container image under 500MB and avoid heavy initialization logic (eager DB connections, large file reads at startup)
  • .dockerignore must exclude .git, node_modules, .env, and test directories — a missing or incomplete .dockerignore can bloat images 10x and leak secrets into layers
  • GitHub Actions needs Workload Identity Federation for keyless auth to GCP — service account JSON keys are a security risk and should not be stored as repository secrets

Read the full file on GitHub · 66 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 66 lines · 43 tokens per session scan A 847ad573eb0a

Subscribe to this mod's changes

docker-cloudrun is a skill published in the GitHub repository hamzaPixl/pixl-ai (2 stars, last pushed 4mo ago), licensed MIT. It adds 43 tokens to every session and 665 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

scanning-containers-with-trivy-in-cicd

This skill covers integrating Aqua Security's Trivy scanner into CI/CD pipelines for comprehensive container image vulnerability detection. It addresses scanning Docker images for OS package and application dependency CVEs, detecting misconfigurations in Dockerfiles, scanning filesystem and git repositories, and…

xalgorix/xalgorix · 74 tokens

performing-container-security-scanning-with-trivy

Scan container images, filesystems, and Kubernetes manifests for vulnerabilities, misconfigurations, exposed secrets, and license compliance issues using Aqua Security Trivy with SBOM generation and CI/CD integration.

xalgorix/xalgorix · 48 tokens

devops

DevOps - Docker, CI/CD, cloud infra, monitoring.

sipyourdrink-ltd/bernstein · 16 tokens

devops-deployment

Use when setting up CI/CD pipelines, containerizing applications, deploying to Kubernetes, or writing infrastructure as code. DevOps & Deployment covers GitHub Actions, Docker, Helm, and Terraform patterns.

yonatangross/orchestkit · 44 tokens

devops-infrastructure

Guides Docker, CI/CD pipelines, deployment strategies, infrastructure as code, and observability setup. Use when writing Dockerfiles, configuring GitHub Actions, planning deployments, setting up monitoring, or when asked about containers, pipelines, Terraform, or production infrastructure.

CloudAI-X/claude-workflow-v2 · 57 tokens

devops-automator

Expert DevOps engineer for CI/CD, IaC, Kubernetes, and deployment automation. Activate on: CI/CD, GitHub Actions, Terraform, Docker, Kubernetes, Helm, ArgoCD, GitOps, deployment pipeline, infrastructure as code, container orchestration. NOT for: application code (use language skills), database schema (use…

curiositech/some_claude_skills · 87 tokens