blob: 8664391566c1d86c858c5f7ee1b4247febe01b7d [file] [log] [blame] [edit]
FROM golang:1.25.8 as go-builder
COPY . /work/
WORKDIR /work/src/cmd/cos_gpu_config_builder
ARG TARGETOS
ARG TARGETARCH
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -o cos-gpu-config-builder main.go
FROM gcr.io/distroless/static-debian11
LABEL maintainer="cos-containers@google.com"
COPY --from=go-builder /work/src/cmd/cos_gpu_config_builder/cos-gpu-config-builder /cos-gpu-config-builder
ENTRYPOINT ["/cos-gpu-config-builder"]