Skip to content

Commit

Permalink
update bridgehistoryapi-db-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Feb 26, 2025
1 parent f42d7e8 commit 68b29e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/dockerfiles/bridgehistoryapi-db-cli.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Download Go dependencies
FROM golang:1.21-alpine3.19 as base
FROM scrolltech/go-rust-builder:go-1.21-rust-nightly-2023-12-03 as base

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

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

0 comments on commit 68b29e7

Please sign in to comment.