Skip to content

Commit 6f6b50e

Browse files
author
colinlyguo
committed
fix
1 parent 68b29e7 commit 6f6b50e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/dockerfiles/bridgehistoryapi-db-cli.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FROM base as builder
1010

1111
RUN --mount=target=. \
1212
--mount=type=cache,target=/root/.cache/go-build \
13-
cd /src/bridge-history-api/cmd/db_cli && go build -v -p 4 -o /bin/db_cli
13+
cd /src/bridge-history-api/cmd/db_cli && CGO_LDFLAGS="-Wl,--no-as-needed -ldl" go build -v -p 4 -o /bin/db_cli
1414

1515
# Pull db_cli into a second stage deploy alpine container
1616
FROM ubuntu:20.04

0 commit comments

Comments
 (0)