Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nxcc committed May 24, 2024
1 parent 96c2f8a commit 8b2c381
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile-cmp
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8b2c381

Please sign in to comment.