fix: enable full version alpine build only
This commit is contained in:
		
							parent
							
								
									2971d33915
								
							
						
					
					
						commit
						79835f6414
					
				
					 4 changed files with 11 additions and 21 deletions
				
			
		| 
						 | 
				
			
			@ -9,7 +9,7 @@ RUN set -ex \
 | 
			
		|||
    && apk add git build-base \
 | 
			
		||||
    && export COMMIT=$(git rev-parse --short HEAD) \
 | 
			
		||||
    && export VERSION=$(go run ./cmd/internal/read_tag) \
 | 
			
		||||
    && go build -v -trimpath -tags with_gvisor,with_quic,with_wireguard,with_utls,with_reality_server,with_clash_api,with_acme \
 | 
			
		||||
    && go build -v -trimpath -tags with_gvisor,with_quic,with_dhcp,with_wireguard,with_utls,with_reality_server,with_clash_api,with_acme \
 | 
			
		||||
        -o /go/bin/sing-box \
 | 
			
		||||
        -ldflags "-X \"github.com/sagernet/sing-box/constant.Version=$VERSION\" -s -w -buildid=" \
 | 
			
		||||
        ./cmd/sing-box
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue