mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 20:22:31 +02:00
Remove LDFLAGS from source code, specify them build-time
This commit is contained in:
@@ -6,7 +6,7 @@ ARG BUILDPLATFORM
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
COPY . .
|
||||
RUN docker/go.sh build -v -o /usr/local/bin/imgproxy
|
||||
RUN docker/go.sh build -v -ldflags "-s -w" -o /usr/local/bin/imgproxy
|
||||
|
||||
# ==================================================================================================
|
||||
# Final image
|
||||
|
@@ -2,7 +2,6 @@ package vips
|
||||
|
||||
/*
|
||||
#cgo pkg-config: vips
|
||||
#cgo LDFLAGS: -s -w
|
||||
#cgo CFLAGS: -O3
|
||||
#include "vips.h"
|
||||
*/
|
||||
|
Reference in New Issue
Block a user