File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ RUN --mount=target=. \
1212 --mount=type=cache,target=/root/.cache/go-build \
1313 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
15- # Pull db_cli into a second stage deploy alpine container
15+ # Pull db_cli into a second stage deploy ubuntu container
1616FROM ubuntu:20.04
1717ENV CGO_LDFLAGS="-Wl,--no-as-needed -ldl"
1818COPY --from=builder /bin/db_cli /bin/
Original file line number Diff line number Diff line change 11# Download Go dependencies
2- FROM scrolltech/go-alpine -builder:1.21 as base
2+ FROM scrolltech/go-rust -builder:go- 1.21-rust-nightly-2023-12-03 as base
33
44WORKDIR /src
55COPY go.work* ./
@@ -16,10 +16,11 @@ FROM base as builder
1616
1717RUN --mount=target=. \
1818 --mount=type=cache,target=/root/.cache/go-build \
19- cd /src/database/cmd && go build -v -p 4 -o /bin/db_cli
19+ cd /src/database/cmd && CGO_LDFLAGS= "-Wl,--no-as-needed -ldl" go build -v -p 4 -o /bin/db_cli
2020
21- # Pull db_cli into a second stage deploy alpine container
22- FROM alpine:latest
21+ # Pull db_cli into a second stage deploy ubuntu container
22+ FROM ubuntu:20.04
23+ ENV CGO_LDFLAGS="-Wl,--no-as-needed -ldl"
2324COPY --from=builder /bin/db_cli /bin/
2425WORKDIR /app
2526ENTRYPOINT ["db_cli" ]
You can’t perform that action at this time.
0 commit comments