Skip to content
Snippets Groups Projects
Verified Commit 6855522a authored by cyrinux's avatar cyrinux :construction_worker_tone1:
Browse files

chore: test 1.24.0-rc1

parent 0079badc
No related branches found
No related tags found
No related merge requests found
Pipeline #32957 passed
FROM golang:1.22 AS golangbuild
ARG TARGETARCH
WORKDIR /usr/src/app
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
RUN make
# This builder stage it's only because we need a command
# to create a symlink and reduce the size of the image
FROM gcr.io/distroless/static-debian12:debug-nonroot AS builder
ARG TARGETARCH
SHELL ["/busybox/sh", "-c"]
COPY --chown=nonroot:nonroot --chmod=0755 dist/manager/* bin/
COPY --from=golangbuild --chown=nonroot:nonroot --chmod=0755 /usr/src/app/bin/manager bin/manager
RUN ln -sf bin/manager_${TARGETARCH} manager
FROM gcr.io/distroless/static-debian12:nonroot
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment