From 6c43c9164088eaf0406a175ccb212b22c09ff9f5 Mon Sep 17 00:00:00 2001 From: colinlyguo Date: Tue, 9 Jul 2024 18:10:41 +0800 Subject: [PATCH] use scrolltech/go-rust-builder:go-1.21-rust-nightly-2023-12-03 as base image --- build/dockerfiles/coordinator-api.Dockerfile | 3 ++- build/dockerfiles/coordinator-cron.Dockerfile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build/dockerfiles/coordinator-api.Dockerfile b/build/dockerfiles/coordinator-api.Dockerfile index 28066680c1..6fe1a51298 100644 --- a/build/dockerfiles/coordinator-api.Dockerfile +++ b/build/dockerfiles/coordinator-api.Dockerfile @@ -34,7 +34,8 @@ 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/ -RUN cd ./coordinator && CGO_LDFLAGS="-ldl" make coordinator_api_skip_libzkp && mv ./build/bin/coordinator_api /bin/coordinator_api && mv internal/logic/verifier/lib /bin/ +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 diff --git a/build/dockerfiles/coordinator-cron.Dockerfile b/build/dockerfiles/coordinator-cron.Dockerfile index 6d847afe80..f1d1c2e993 100644 --- a/build/dockerfiles/coordinator-cron.Dockerfile +++ b/build/dockerfiles/coordinator-cron.Dockerfile @@ -1,5 +1,5 @@ # Download Go dependencies -FROM scrolltech/go-alpine-builder:1.21 as base +FROM scrolltech/go-rust-builder:go-1.21-rust-nightly-2023-12-03 as base WORKDIR /src COPY go.work* ./