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
2026-07-04 07:29:26 +02:00
parent 819d7d6453
commit e95298ff72
+4 -4
View File
@@ -12,15 +12,15 @@ COPY . .
# Build the application (static binary, no CGO, migrations embedded)
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
-a \
-installsuffix cgo \
-ldflags="-w -s -extldflags '-static'" \
-trimpath \
-ldflags="-w -s" \
-o aitrade \
./cmd/aitrade
# Build healthcheck utility
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
-ldflags="-w -s -extldflags '-static'" \
- trimpath \
-ldflags="-w -s" \
-o healthcheck \
./cmd/healthcheck