[feat] change to multi stage build
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							parent
							
								
									8aea07cf6e
								
							
						
					
					
						commit
						0c7c9334ef
					
				@ -1,7 +1,8 @@
 | 
			
		||||
ARG IMG_TAG=1
 | 
			
		||||
FROM golang:${IMG_TAG}
 | 
			
		||||
FROM golang:${IMG_TAG} as builder
 | 
			
		||||
RUN go get -u github.com/go-bindata/go-bindata/... \
 | 
			
		||||
  && go get -u github.com/go-swagger/go-swagger/... \
 | 
			
		||||
  && mv "$(go env GOPATH)/bin/go-bindata" /usr/bin \
 | 
			
		||||
  && mv "$(go env GOPATH)/bin/swagger" /usr/bin
 | 
			
		||||
  && go get -u github.com/go-swagger/go-swagger/...
 | 
			
		||||
 | 
			
		||||
FROM golang:${IMG_TAG}
 | 
			
		||||
COPY --from=builder /go/bin/swagger /usr/bin
 | 
			
		||||
COPY --from=builder /go/bin/go-bindata /usr/bin
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user