build: rename comptime vars, add -skip-unused
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
FROM thevlang/vlang:latest AS builder
 | 
			
		||||
COPY . .
 | 
			
		||||
RUN v -prod -cc gcc -cflags -static -cflags -s -d habraview_version=$(git describe --tags) . -o /habraview
 | 
			
		||||
RUN v -prod -skip-unused -cc gcc -cflags -static -cflags -s -d hv_version=$(git describe --tags) . -o /habraview
 | 
			
		||||
 | 
			
		||||
FROM scratch AS prod
 | 
			
		||||
COPY --from=builder /habraview .
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user