1- FROM golang:alpine3.19 as k8s-await-election-builder
1+ FROM golang:alpine3.21 as k8s-await-election-builder
22
33ARG K8S_AWAIT_ELECTION_GITREPO=https://github.com/LINBIT/k8s-await-election
44ARG K8S_AWAIT_ELECTION_VERSION=0.4.1
@@ -13,27 +13,30 @@ RUN git clone ${K8S_AWAIT_ELECTION_GITREPO} /usr/local/go/k8s-await-election/ \
1313 && make \
1414 && mv ./out/k8s-await-election-${TARGETARCH} /k8s-await-election
1515
16- FROM alpine:3.19 AS builder
16+ FROM golang:alpine3.21 as builder
1717
1818RUN apk add --no-cache make git
1919RUN apk add helm --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
2020
2121COPY . /src/
2222WORKDIR /src
2323
24+ RUN go build -o /cozystack-assets-server -ldflags '-extldflags "-static" -w -s' ./cmd/cozystack-assets-server
25+
2426# Check that versions_map is not changed
2527RUN make repos
2628
27- FROM alpine:3.19
29+ FROM alpine:3.21
2830
29- RUN apk add --no-cache make darkhttpd
31+ RUN apk add --no-cache make
3032RUN apk add helm kubectl --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
3133
3234COPY scripts /cozystack/scripts
3335COPY --from=builder /src/packages/core /cozystack/packages/core
3436COPY --from=builder /src/packages/system /cozystack/packages/system
3537COPY --from=builder /src/_out/repos /cozystack/assets/repos
3638COPY --from=builder /src/_out/logos /cozystack/assets/logos
39+ COPY --from=builder /cozystack-assets-server /usr/bin/cozystack-assets-server
3740COPY --from=k8s-await-election-builder /k8s-await-election /usr/bin/k8s-await-election
3841COPY dashboards /cozystack/assets/dashboards
3942
0 commit comments