File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 11#  Build the manager binary
22FROM  golang:1.21 AS builder
3- ARG  TARGETOS
4- ARG  TARGETARCH
53
64WORKDIR  /workspace
75#  Copy the Go Modules manifests
@@ -21,7 +19,7 @@ COPY internal/controller/ internal/controller/
2119#  was called. For example, if we call make docker-build in a local env which has the Apple Silicon M1 SO
2220#  the docker BUILDPLATFORM arg will be linux/arm64 when for Apple x86 it will be linux/amd64. Therefore,
2321#  by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
24- RUN  CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH}  go build -a -o manager cmd/main.go
22+ RUN  CGO_ENABLED=0 go build -a -o manager cmd/main.go
2523
2624#  Use distroless as minimal base image to package the manager binary
2725#  Refer to https://github.com/GoogleContainerTools/distroless for more details
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments