Skip to content

Commit 68b29e7

Browse files
author
colinlyguo
committed
update bridgehistoryapi-db-cli
1 parent f42d7e8 commit 68b29e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build/dockerfiles/bridgehistoryapi-db-cli.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Download Go dependencies
2-
FROM golang:1.21-alpine3.19 as base
2+
FROM scrolltech/go-rust-builder:go-1.21-rust-nightly-2023-12-03 as base
33

44
WORKDIR /src
55
COPY ./bridge-history-api/go.* ./
@@ -13,7 +13,8 @@ RUN --mount=target=. \
1313
cd /src/bridge-history-api/cmd/db_cli && go build -v -p 4 -o /bin/db_cli
1414

1515
# Pull db_cli into a second stage deploy alpine container
16-
FROM alpine:latest
16+
FROM ubuntu:20.04
17+
ENV CGO_LDFLAGS="-Wl,--no-as-needed -ldl"
1718
COPY --from=builder /bin/db_cli /bin/
1819
WORKDIR /app
1920
ENTRYPOINT ["db_cli"]

0 commit comments

Comments
 (0)