You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							16 lines
						
					
					
						
							378 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							16 lines
						
					
					
						
							378 B
						
					
					
				
								FROM registry.ngaiot.com/base-images/golang:1.20-fs-10
							 | 
						|
								
							 | 
						|
								WORKDIR /app/
							 | 
						|
								COPY . .
							 | 
						|
								RUN pwd && ls
							 | 
						|
								RUN go env -w GOPROXY=https://goproxy.cn
							 | 
						|
								RUN go env -w GO111MODULE=on
							 | 
						|
								RUN CGO_ENABLED=0 go build  -a -v -o app.exe main.go
							 | 
						|
								
							 | 
						|
								
							 | 
						|
								FROM registry.ngaiot.com/base-images/alpine_3.20_cst:7
							 | 
						|
								WORKDIR /app/
							 | 
						|
								COPY  --from=0 /app/app.exe /app
							 | 
						|
								COPY  --from=0 /app/configFiles /app
							 | 
						|
								
							 | 
						|
								CMD ["/app/app.exe"]
							 |