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