From cc964749e39a124fffab4da379bcf97509b9f87d Mon Sep 17 00:00:00 2001 From: Piotr Halama Date: Thu, 25 Apr 2024 15:12:31 +0200 Subject: [PATCH] test original file with ado --- components/operator/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/components/operator/Dockerfile b/components/operator/Dockerfile index 031900624..1817e73db 100644 --- a/components/operator/Dockerfile +++ b/components/operator/Dockerfile @@ -6,7 +6,7 @@ # Build the operator binary FROM golang:1.22.2 as builder -WORKDIR /workdir +WORKDIR /workspace # Copy the Go Modules manifests COPY go.mod go.sum ./ @@ -26,7 +26,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o operator ./components/o # Bumping serverless images in the values.yaml - used for building "local" and "dev" images FROM alpine:3.19.1 as replacer -WORKDIR /workdir +WORKDIR /workspace ARG PURPOSE ARG IMG_DIRECTORY @@ -52,8 +52,9 @@ RUN if [[ "local" = "$PURPOSE" ]] ; then ./hack/replace_serverless_chart_images. FROM gcr.io/distroless/static:nonroot WORKDIR / -COPY --chown=65532:65532 --from=builder /workdir/operator . -COPY --chown=65532:65532 --from=replacer /workdir/config/serverless /module-chart +COPY --chown=65532:65532 --from=builder /workspace/operator . +COPY --chown=65532:65532 --from=replacer /workspace/config/serverless /module-chart USER 65532:65532 ENTRYPOINT ["/operator"] +