go 1.23.0

main
sudo pacman -Syu 2024-08-14 10:07:31 +07:00
parent f2278beb4f
commit 7645d0530e
2 changed files with 12 additions and 12 deletions

View File

@ -60,10 +60,10 @@
</p> </p>
<p>So I decide to have a baseline Dockerfile like this:</p> <p>So I decide to have a baseline Dockerfile like this:</p>
<div class="highlight highlight-source-dockerfile"> <div class="highlight highlight-source-dockerfile">
<pre><span class="pl-k">FROM</span> golang:1.22.0-bookworm as builder <pre><span class="pl-k">FROM</span> golang:1.23.0-bookworm as builder
<span class="pl-k">RUN</span> go install golang.org/dl/go1.22.0@latest \ <span class="pl-k">RUN</span> go install golang.org/dl/go1.23.0@latest \
&amp;&amp; go1.22.0 download &amp;&amp; go1.23.0 download
<span class="pl-k">WORKDIR</span> /build <span class="pl-k">WORKDIR</span> /build
@ -107,15 +107,15 @@
Debian version. Debian version.
</p> </p>
<div class="highlight highlight-source-dockerfile"> <div class="highlight highlight-source-dockerfile">
<pre><span class="pl-k">FROM</span> golang:1.22.0-bookworm as builder</pre> <pre><span class="pl-k">FROM</span> golang:1.23.0-bookworm as builder</pre>
</div> </div>
<p> <p>
This is Go image I use as a build stage. This can be official Go image or This is Go image I use as a build stage. This can be official Go image or
custom image is required in some companies. custom image is required in some companies.
</p> </p>
<div class="highlight highlight-source-dockerfile"> <div class="highlight highlight-source-dockerfile">
<pre><span class="pl-k">RUN</span> go install golang.org/dl/go1.22.0@latest \ <pre><span class="pl-k">RUN</span> go install golang.org/dl/go1.23.0@latest \
&amp;&amp; go1.22.0 download</pre> &amp;&amp; go1.23.0 download</pre>
</div> </div>
<p> <p>
This is optional. In my case, my company is slow to update Go image so I This is optional. In my case, my company is slow to update Go image so I

View File

@ -6,10 +6,10 @@ Each time I start a new Go project, I repeat many steps. Like set up
So I decide to have a baseline Dockerfile like this: So I decide to have a baseline Dockerfile like this:
```Dockerfile ```Dockerfile
FROM golang:1.22.0-bookworm as builder FROM golang:1.23.0-bookworm as builder
RUN go install golang.org/dl/go1.22.0@latest \ RUN go install golang.org/dl/go1.23.0@latest \
&& go1.22.0 download && go1.23.0 download
WORKDIR /build WORKDIR /build
@ -43,15 +43,15 @@ Also, remember to match Distroless Debian version with Go official image Debian
version. version.
```Dockerfile ```Dockerfile
FROM golang:1.22.0-bookworm as builder FROM golang:1.23.0-bookworm as builder
``` ```
This is Go image I use as a build stage. This can be official Go image or custom This is Go image I use as a build stage. This can be official Go image or custom
image is required in some companies. image is required in some companies.
```Dockerfile ```Dockerfile
RUN go install golang.org/dl/go1.22.0@latest \ RUN go install golang.org/dl/go1.23.0@latest \
&& go1.22.0 download && go1.23.0 download
``` ```
This is optional. In my case, my company is slow to update Go image so I use This is optional. In my case, my company is slow to update Go image so I use