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:
parent
cd79c70822
commit
a91f17d43e
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
||||
bin
|
||||
kubernetes
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user