From 8b2c381f62a37cba73ed1b14a0f9e5dad680e050 Mon Sep 17 00:00:00 2001 From: nxcc <> Date: Fri, 24 May 2024 13:40:50 +0200 Subject: [PATCH] update Dockerfile --- docker/Dockerfile-cmp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile-cmp b/docker/Dockerfile-cmp index d8ba932..c1a9756 100644 --- a/docker/Dockerfile-cmp +++ b/docker/Dockerfile-cmp @@ -1,12 +1,12 @@ -FROM golang:1.22 as builder +FROM golang:1.22.3 as builder WORKDIR /go/src/app ARG VERSION COPY . ./ RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X 'main.build=$VERSION'" -o cuegen . RUN sed "s/VERSION/$VERSION/g" docker/plugin.yaml > plugin.yaml -RUN curl -sfL https://github.com/mikefarah/yq/releases/download/v4.42.1/yq_linux_amd64 -o /tmp/yq && chmod 755 /tmp/yq +RUN curl -sfL https://github.com/mikefarah/yq/releases/download/v4.44.1/yq_linux_amd64 -o /tmp/yq && chmod 755 /tmp/yq -FROM gcr.io/distroless/static-debian11 +FROM gcr.io/distroless/static-debian12 COPY --from=builder /tmp/yq /bin/yq COPY --from=builder /go/src/app/cuegen /bin/cuegen COPY --from=builder /go/src/app/plugin.yaml /home/argocd/cmp-server/config/plugin.yaml