We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f42d7e8 commit 68b29e7Copy full SHA for 68b29e7
build/dockerfiles/bridgehistoryapi-db-cli.Dockerfile
@@ -1,5 +1,5 @@
1
# Download Go dependencies
2
-FROM golang:1.21-alpine3.19 as base
+FROM scrolltech/go-rust-builder:go-1.21-rust-nightly-2023-12-03 as base
3
4
WORKDIR /src
5
COPY ./bridge-history-api/go.* ./
@@ -13,7 +13,8 @@ RUN --mount=target=. \
13
cd /src/bridge-history-api/cmd/db_cli && go build -v -p 4 -o /bin/db_cli
14
15
# Pull db_cli into a second stage deploy alpine container
16
-FROM alpine:latest
+FROM ubuntu:20.04
17
+ENV CGO_LDFLAGS="-Wl,--no-as-needed -ldl"
18
COPY --from=builder /bin/db_cli /bin/
19
WORKDIR /app
20
ENTRYPOINT ["db_cli"]
0 commit comments