File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -11,21 +11,18 @@ RUN go mod download
1111
1212# Copy the go source
1313COPY cmd/crdinstaller/ cmd/crdinstaller/
14- COPY apis/ apis/
15- COPY pkg/ pkg/
1614
1715ARG TARGETARCH
1816
1917# Build
2018RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} GO111MODULE=on go build -o crdinstaller cmd/crdinstaller/main.go
2119
2220# Use distroless as minimal base image to package the crdinstaller binary
23- # Include kubectl for accessing the Kubernetes API
2421FROM gcr.io/distroless/static:nonroot
25- WORKDIR /workspace
26- COPY --from=builder /workspace/crdinstaller /usr/local/bin/crdinstaller
22+ WORKDIR /
23+ COPY --from=builder /workspace/crdinstaller .
2724COPY config/crd/bases/ /workspace/config/crd/bases/
2825
2926USER 65532:65532
3027
31- ENTRYPOINT ["/usr/local/bin/ crdinstaller" ]
28+ ENTRYPOINT ["/crdinstaller" ]
You can’t perform that action at this time.
0 commit comments