Docker Containerization & Google Cloud Run

Automates Docker containerization and Cloud Run deployment for Next.js and Vite apps.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/okatech-org/gabon-diplomatie --skill docker-containerization-google-cloud-run
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Docker Containerization & Google Cloud Run
Source: https://github.com/okatech-org/gabon-diplomatie/tree/main/.agent/skills/docker-cloud-run
Command: npx skills add https://github.com/okatech-org/gabon-diplomatie --skill docker-containerization-google-cloud-run

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Teams building multiple web apps (Next.js and Vite) often struggle to achieve consistent, scalable deployments across environments. This skill provides standardized Docker containerization and deployment to Google Cloud Run, enabling reproducible builds and serverless scaling for multi-app architectures.

Core Features & Use Cases

  • Multi-stage Docker builds tailored for Next.js and Vite apps to minimize image size and build time.
  • Cloud Run deployment with automatic scaling, logging, and CI/CD integration using Cloud Build and Artifact Registry.
  • Use Case: Deploy AGASA platform components (Pro, Admin, Core, Citoyen, Inspect) and the secretariat-general-gouv workflow with a single, repeatable pipeline.

Quick Start

Create Docker images with a multi-stage build and deploy them to Google Cloud Run to run scalable, serverless apps.

Frequently Asked Questions about Docker Containerization & Google Cloud Run

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

FAQPage Schema
How do I deploy a Next.js app to Google Cloud Run using Docker?

Deploy a Next.js app to Google Cloud Run by building a reproducible multi-stage Docker image and automating the pipeline through Cloud Build and Artifact Registry. This workflow provides serverless scaling for containerized web applications.

What is a multi-stage Docker build and when do I need it for Vite apps?

A multi-stage Docker build separates the build environment from the final runtime image to minimize size and build time. You need it for Vite apps to keep production containers lightweight while maintaining reproducible builds across environments.

Can I deploy multiple apps from a monorepo to Cloud Run with a single pipeline?

Yes, you can deploy multiple apps from a monorepo to Cloud Run using a single repeatable pipeline. The workflow supports multi-app architectures, allowing standardized containerization and serverless scaling for various platform components simultaneously.

Do I need Artifact Registry and Cloud Build to automate Cloud Run deployments?

Yes, Artifact Registry stores your Docker images and Cloud Build automates the CI/CD pipeline for Cloud Run deployments. Together they provide reproducible builds, automated scaling, and integrated logging for containerized Next.js and Vite applications.

How does serverless scaling work for Docker containers on Google Cloud Run?

Serverless scaling on Google Cloud Run automatically adjusts the number of container instances based on traffic. It uses your Docker images from Artifact Registry to spin up instances on demand, providing logging and automated scaling without server management.

What's the best way to minimize Docker image size for Next.js and Vite deployments?

The best way to minimize Docker image size for Next.js and Vite deployments is using multi-stage Docker builds. This technique isolates dependencies and build artifacts, reducing the final image footprint and improving build time for Cloud Run.