Skip to content

Commit

Permalink
add ENV CGO_ENABLED=1
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehao committed Jul 9, 2024
1 parent 6c43c91 commit 5235032
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/dockerfiles/coordinator-api.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ FROM base as builder
COPY . .
RUN cp -r ./common/libzkp/interface ./coordinator/internal/logic/verifier/lib
COPY --from=zkp-builder /app/target/release/libzkp.so ./coordinator/internal/logic/verifier/lib/
ENV CGO_ENABLED=1
ENV CGO_LDFLAGS="-ldl"
RUN cd ./coordinator && make coordinator_api_skip_libzkp && mv ./build/bin/coordinator_api /bin/coordinator_api && mv internal/logic/verifier/lib /bin/

# Pull coordinator into a second stage deploy alpine container
FROM ubuntu:20.04
ENV CGO_ENABLED=1
ENV CGO_LDFLAGS="-ldl"
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/src/coordinator/internal/logic/verifier/lib
# ENV CHAIN_ID=534353
Expand Down

0 comments on commit 5235032

Please sign in to comment.