Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert image workspace change to release 1.4 #922

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions components/operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Build the operator binary
FROM golang:1.22.1 as builder

WORKDIR /app
WORKDIR /workspace

# Copy the Go Modules manifests
COPY go.mod go.sum ./
Expand All @@ -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 /app
WORKDIR /workspace

ARG PURPOSE
ARG IMG_DIRECTORY
Expand All @@ -52,8 +52,8 @@ RUN if [[ "local" = "$PURPOSE" ]] ; then ./hack/replace_serverless_chart_images.
FROM gcr.io/distroless/static:nonroot

WORKDIR /
COPY --chown=65532:65532 --from=builder /app/operator .
COPY --chown=65532:65532 --from=replacer /app/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"]
Loading