trimpath
Build and Push Docker Image / build-and-push (push) Failing after 2m57s

Signed-off-by: kaedwen <kaedwen@heinrich.blue>
This commit is contained in:
kaedwen committed 2026-07-04 07:29:26 +02:00
1 parent 819d7d6453
commit e95298ff72
1 file changed
+4 -4
+4 -4
View File
@@ -12,15 +12,15 @@ COPY . .
# Build the application (static binary, no CGO, migrations embedded) # Build the application (static binary, no CGO, migrations embedded)
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
-a \ -trimpath \
-installsuffix cgo \ -ldflags="-w -s" \
-ldflags="-w -s -extldflags '-static'" \
-o aitrade \ -o aitrade \
./cmd/aitrade ./cmd/aitrade
# Build healthcheck utility # Build healthcheck utility
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
-ldflags="-w -s -extldflags '-static'" \ - trimpath \
-ldflags="-w -s" \
-o healthcheck \ -o healthcheck \
./cmd/healthcheck ./cmd/healthcheck