Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions content/blog/building-images-bake/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
title: "Creating a custom container image for CloudNativePG v2.0"
date: 2025-07-23
draft: false
image:
url: baked_elephant.png
alt: "Baked elephant cookies"
attribution:
author: jgonzalez
tags:
- blog
Expand All @@ -21,7 +25,7 @@ summary: Using Docker's Bake to create container images for the CloudNativePG Op
## Summary
Nearly two years ago, we shared a [blog post on building custom container
images for CloudNativePG]({{% ref "/blog/creating-container-images/" %}}). Since then, the container ecosystem has evolved
significantly—one notable development being the introduction of [Docker Bake]((https://docs.docker.com/build/bake/)).
significantly—one notable development being the introduction of [Docker Bake](https://docs.docker.com/build/bake/).

Docker Bake simplifies image builds using a straightforward configuration file,
and it’s now our recommended approach for building CloudNativePG images.
Expand All @@ -48,7 +52,7 @@ extensions = [
target "myimage" {
dockerfile-inline = <<EOT
ARG BASE_IMAGE="ghcr.io/cloudnative-pg/postgresql:16.9-standard-bookworm"
FROM $BAS_EIMAGE AS myimage
FROM $BASE_IMAGE AS myimage
ARG EXTENSIONS
USER root
RUN apt-get update && \
Expand Down