Skip to content

Commit bd1303b

Browse files
authored
Update index.md with Jaime's suggestions
Signed-off-by: Floor Drees <floordrees@gmail.com>
1 parent 7b4da18 commit bd1303b

File tree

1 file changed

+5
-5
lines changed
  • content/blog/building-images-bake

1 file changed

+5
-5
lines changed

content/blog/building-images-bake/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Creating a custom container image for CloudNativePG v2.0"
3-
date: 2025-07-22
3+
date: 2025-07-23
44
draft: false
55
author: jgonzalez
66
tags:
@@ -39,7 +39,7 @@ parallel.
3939

4040
### Step 1: Prepare local Bake file
4141

42-
To build a custom image we add the following content in a local file with name [bake.hcl](bake.hcl):
42+
To build a custom image we add the following content in a local file with name `bake.hcl`:
4343

4444
```hcl
4545
extensions = [
@@ -153,13 +153,13 @@ merged, meaning that the new elements will be added, and the existing ones will
153153

154154
The Dockerfile is defined as a heredoc string due to Bake's limitation in overriding a remote Dockerfile with a local
155155
one. However, this approach still lets us modify the FROM directive, allowing us to base our image directly on the
156-
CloudNativePG images and add only the specific extensions we need—without rebuilding all of them.
156+
CloudNativePG images and add only the extensions we need—without rebuilding everything.
157157

158158
## Making your images for specific architectures
159159

160160
By default, images are built for both `amd64` and `arm64` architectures, which is the recommended setup for most users.
161-
However, if you want to target a specific architecture and reduce image size, you can override the `platforms` variable
162-
in your local Bake file.
161+
However, if you want to build images only for one specific architecture, saving some space, you can override the
162+
`platforms` variable in your local Bake file.
163163

164164
```hcl
165165
platforms = ["linux/amd64"]

0 commit comments

Comments
 (0)