| ARG BUILD_IMG |
| FROM $BUILD_IMG as builder |
| |
| # ============================================================================= |
| # Copy the controller-manager into a thin image |
| # ============================================================================= |
| |
| # Use distroless as minimal base image to package the manager binary |
| # Refer to https://github.com/GoogleContainerTools/distroless for more details |
| FROM gcr.io/distroless/static:nonroot |
| |
| WORKDIR / |
| COPY --from=builder workspace/bin/solr-operator . |
| USER nonroot:nonroot |
| |
| ENTRYPOINT ["/solr-operator"] |