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.
		
		
		
		
		
			
		
			
				
					
					
						
							18 lines
						
					
					
						
							457 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							18 lines
						
					
					
						
							457 B
						
					
					
				| FROM registry.ngaiot.com/base-images/golang-1.22:1.22-fs-3 | |
|  | |
| WORKDIR /app/ | |
| COPY . . | |
| RUN pwd  \ | |
|     &&  ls  \ | |
|     && go env -w GOPROXY=https://goproxy.cn  \ | |
|     && go env -w GOPRIVATE=gitea.ngaiot.com  \ | |
|     && go env -w GO111MODULE=on | |
|  | |
| RUN cd containerApp  \ | |
|     && CGO_ENABLED=0 go build  -a -v -o ./app.exe main.go | |
|  | |
| FROM registry.ngaiot.com/base-images/golang-1.22:1.22-fs-3 | |
| WORKDIR /app/ | |
| COPY  --from=0 /app/*.exe  /app/*.yaml  /app/ | |
|  | |
| CMD ["/app/app.exe"] |