davidjumani commented on pull request #25:
URL: 
https://github.com/apache/cloudstack-kubernetes-provider/pull/25#issuecomment-823148788


   @joschi36 Can try distroless instead which works fine and makes life easier 
https://github.com/GoogleContainerTools/distroless/blob/main/base/README.md
   
   ```
   FROM golang:1.13 as builder
   COPY . /go/src/github.com/apache/cloudstack-kubernetes-provider
   WORKDIR /go/src/github.com/apache/cloudstack-kubernetes-provider
   RUN make clean && CGO_ENABLED=0 GOOS=linux make
   
   FROM gcr.io/distroless/static
   USER nonroot:nonroot
   COPY --from=builder 
/go/src/github.com/apache/cloudstack-kubernetes-provider/cloudstack-ccm 
/app/cloudstack-ccm
   ENTRYPOINT [ "/app/cloudstack-ccm", "--cloud-provider", 
"external-cloudstack" ]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to