Skip to content

Commit

Permalink
fix image build error
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Jul 27, 2024
1 parent df17e1b commit 52c5ac4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ RUN apt-get -qq update \
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
COPY --from=zkp-builder /app/target/release/libzkp.so /usr/local/lib/
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
ENV CGO_LDFLAGS="-ldl"

EXPOSE 8545 8546 30303 30303/udp
ENTRYPOINT ["geth"]
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.mockccc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ FROM ubuntu:20.04
RUN apt-get -qq update \
&& apt-get -qq install -y --no-install-recommends ca-certificates

ENV CGO_LDFLAGS="-ldl"

COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/

EXPOSE 8545 8546 30303 30303/udp
Expand Down
3 changes: 3 additions & 0 deletions build/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ func doInstall(cmdline []string) {
// Show packages during build.
gobuild.Args = append(gobuild.Args, "-v")

// Add -ldl flags for libscroll_zstd.a.
gobuild.Args = append(gobuild.Args, "-ldflags", "-extldflags -ldl")

// Now we choose what we're even building.
// Default: collect all 'main' packages in cmd/ and build those.
packages := flag.Args()
Expand Down

0 comments on commit 52c5ac4

Please sign in to comment.