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.
		
		
		
		
		
			
		
			
				
					
					
						
							20 lines
						
					
					
						
							694 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							20 lines
						
					
					
						
							694 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 GOOS=linux GOARCH=arm64 go build \
							 | 
						|
								    -ldflags "-extldflags -static -X main.VERSION=$VERSION -X main.SVN_REVISION=$SVN_REVISION -X main.BUILD_NUMBER=$BUILD_NUMBER -X main.BUILD_TIME=$BUILD_TIME -X main.GO_VERSION=$GO_VERSION" \
							 | 
						|
								    -tags "et-go" -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"]
							 |