---
title: "Deploying to production in <5m with our hosted container builder"
description: "incident.io cut Docker image build times from an inconsistent 3–10+ minutes back to under 2 minutes by replacing CircleCI's remote Docker and Docker Layer Caching with a permanently running GCP c2-standard-8 builder with a 500GB SSD."
url: "https://swe.quest/articles/deploying-to-production-in-5m-with-our-hosted-container-builder-ca80279668d29e71"
canonical: "https://incident.io/blog/container-builder"
source: "incident.io"
published: "2021-11-18"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["ci-cd","containers","build-systems","developer-productivity","caching"]
---

# Deploying to production in \<5m with our hosted container builder

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2021-11-18, 9 min read, Case study. Original: [https://incident.io/blog/container-builder](https://incident.io/blog/container-builder)

## Summary

incident.io cut Docker image build times from an inconsistent 3–10+ minutes back to under 2 minutes by replacing CircleCI's remote Docker and Docker Layer Caching with a permanently running GCP c2-standard-8 builder with a 500GB SSD. The slow builds came from CircleCI's DLC attaching a cache disk only when one is free, so concurrent builds often started with a cold layer cache. Larger CircleCI resource classes added minutes of provisioning time. CircleCI jobs now reach the dedicated daemon over SSH via DOCKER\_HOST. Measured builds take 20s with no changes and about 1m50s when both the Go backend and React frontend change, for roughly £350/month.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)

## Prerequisites

- Dockerfile layers
- CI pipelines ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))
- multi-stage Docker builds ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))

## Keywords

Docker, CircleCI, Docker Layer Caching, BuildKit, Heroku, Google Cloud Platform, Terraform

## Related posts

- [The quest for the five minute deploy](https://swe.quest/articles/the-quest-for-the-five-minute-deploy-9b91763fbfd58020.md): incident.io · 2025-07-22 · Medium · 9 min read · CI/CD, Go, Build systems, Caching, Developer productivity
  incident.io cut CI/CD times by moving from a hosted provider, where a cold Go build cache made compiling 15,000+ tests across 350+ packages the bottleneck, to Buildkite running on three self-hosted 48-vCPU servers.
- [Counting to 3 with a new builder processing 50M+ monthly builds](https://swe.quest/articles/counting-to-3-with-a-new-builder-processing-50m-monthly-builds-47ae6a690cb417f7.md): Railway · 2026-05-14 · Medium · 8 min read · CI/CD, Virtualization, Build systems, Scaling, Linux
  Railway replaced its docker-buildx-on-GCP-VMs build system with Builder v3: 256-vCPU bare-metal hosts split into eight 32-vCPU microVM build cells running buildkitd, scheduled with a 1-of-3 ring to keep BuildKit caches warm, now peaking at 66,000 builds per hour.
- [Accelerate Your Docker Builds Using AWS CodeBuild and Docker Build Cloud](https://swe.quest/articles/accelerate-your-docker-builds-using-aws-codebuild-and-docker-build-cloud-cf566617782de575.md): Docker · 2024-12-18 · Medium · 8 min read · CI/CD, Containers, Build systems, Cloud platforms
  Offloading container image builds from AWS CodeBuild to Docker Build Cloud addresses three common CI bottlenecks: undersized build machines, no persistent layer cache in clean CI environments, and slow emulated multi-architecture builds.
- [Optimizing Our E2E Pipeline](https://swe.quest/articles/optimizing-our-e2e-pipeline-880da9c129e2726b.md): Slack Engineering · 2025-04-14 · Medium · 5 min read · CI/CD, Build systems, Testing, Developer productivity, Cost optimization
  Slack cut redundant frontend builds in its monorepo E2E pipeline by using \`git diff\` three-dot notation against \`main\` to detect whether a PR touches frontend code, and when it doesn't, serving a recent production frontend build from S3 through an internal CDN instead of rebuilding.
- [Powered by Docker: Streamlining Engineering Operations as a Platform Engineer](https://swe.quest/articles/powered-by-docker-streamlining-engineering-operations-as-a-platform-engineer-f63ffa3b322e1c4b.md): Docker · 2025-02-18 · Medium · 7 min read · CI/CD, Containers, Observability, Deployment, Infrastructure as code
  Replacing QEMU-emulated multi-architecture Docker Buildx builds with native arm64 and amd64 self-hosted GitHub Actions runners cut build times by roughly 90%, with the multi-arch manifest published after the native builds finish.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
