diff --git a/bun.lockb b/bun.lockb index 6c4b4c7..db2ce1b 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/docs/2022-06-08-dockerfile-go.html b/docs/2022-06-08-dockerfile-go.html index f91baed..90f4263 100644 --- a/docs/2022-06-08-dockerfile-go.html +++ b/docs/2022-06-08-dockerfile-go.html @@ -58,10 +58,10 @@
So I decide to have a baseline Dockerfile like this:
FROM golang:1.19-bullseye as builder
+ FROM golang:1.20-bullseye as builder
-RUN go install golang.org/dl/go1.19@latest \
- && go1.19 download
+RUN go install golang.org/dl/go1.20@latest \
+ && go1.20 download
WORKDIR /build
@@ -105,15 +105,15 @@
Debian version.
- FROM golang:1.19-bullseye as builder
+ FROM golang:1.20-bullseye as builder
This is Go image I use as a build stage. This can be official Go image or
custom image is required in some companies.
- RUN go install golang.org/dl/go1.19@latest \
- && go1.19 download
+ RUN go install golang.org/dl/go1.20@latest \
+ && go1.20 download
This is optional. In my case, my company is slow to update Go image so I
diff --git a/posts/2022-06-08-dockerfile-go.md b/posts/2022-06-08-dockerfile-go.md
index b8fe99e..378e9ee 100644
--- a/posts/2022-06-08-dockerfile-go.md
+++ b/posts/2022-06-08-dockerfile-go.md
@@ -6,10 +6,10 @@ Like set up `.gitignore`, CI configs, Dockerfile, ...
So I decide to have a baseline Dockerfile like this:
```Dockerfile
-FROM golang:1.19-bullseye as builder
+FROM golang:1.20-bullseye as builder
-RUN go install golang.org/dl/go1.19@latest \
- && go1.19 download
+RUN go install golang.org/dl/go1.20@latest \
+ && go1.20 download
WORKDIR /build
@@ -39,15 +39,15 @@ So I stick with it for a while.
Also, remember to match Distroless Debian version with Go official image Debian version.
```Dockerfile
-FROM golang:1.19-bullseye as builder
+FROM golang:1.20-bullseye as builder
```
This is Go image I use as a build stage.
This can be official Go image or custom image is required in some companies.
```Dockerfile
-RUN go install golang.org/dl/go1.19@latest \
- && go1.19 download
+RUN go install golang.org/dl/go1.20@latest \
+ && go1.20 download
```
This is optional.