mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 07:43:41 +08:00 
			
		
		
		
	chore: do not static build anymore
This commit is contained in:
		@@ -36,7 +36,7 @@ COPY . .
 | 
			
		||||
COPY --from=builder /web/build ./web/build
 | 
			
		||||
 | 
			
		||||
RUN go build -trimpath \
 | 
			
		||||
    -ldflags "-s -w -X 'github.com/songquanpeng/one-api/common.Version=$(cat VERSION)' -extldflags '-static'" \
 | 
			
		||||
    -ldflags "-s -w -X 'github.com/songquanpeng/one-api/common.Version=$(cat VERSION)' \
 | 
			
		||||
    -o one-api
 | 
			
		||||
 | 
			
		||||
# Final runtime image
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user