now upgraded to go 1.22.5 and mofified coker file to use newer alpine

version with GOTOOLCHAIN=auto setting to automatically download newer
versions.
Also added a .dockerignore file to speed up building images.
This commit is contained in:
Erik Brakkee 2024-08-12 20:57:08 +02:00
parent f823d4b67b
commit 3d5735a050
3 changed files with 5 additions and 2 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
bin
kubernetes

View File

@ -1,4 +1,4 @@
FROM alpine:3.19.3 as builder
FROM alpine:3.20.2 as builder
RUN apk update && apk add go curl
RUN mkdir -p /opt/converge/bin
@ -10,6 +10,7 @@ RUN curl -L https://github.com/a-h/templ/releases/download/v0.2.747/templ_Linux_
mv templ /bin
COPY cmd pkg static go.mod go.sum /opt/converge/
WORKDIR /opt/converge
ENV GOTOOLCHAIN=auto
RUN go mod download
COPY . /opt/converge/
RUN templ generate

2
go.mod
View File

@ -1,6 +1,6 @@
module converge
go 1.21.9
go 1.22.5
require (
github.com/ActiveState/termtest/conpty v0.5.0