Signed-off-by: kaedwen <kaedwen@heinrich.blue>
This commit is contained in:
+4
-4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user