fix build

This commit is contained in:
HoraceZhang 2024-10-18 09:51:17 +08:00 committed by GitHub
parent 026288f5e4
commit 1fc0404a91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 15 deletions

View File

@ -2,28 +2,17 @@ FROM golang:1.22.4-bullseye as build
WORKDIR /opt/node/ WORKDIR /opt/node/
RUN apt-get update && apt-get install -y curl grep ca-certificates
RUN curl -o fetch.sh https://raw.githubusercontent.com/lushdog/quil-docker/refs/heads/main/fetch.sh && chmod +x fetch.sh && ./fetch.sh
RUN chmod +x node
RUN go install github.com/fullstorydev/grpcurl/cmd/grpcurl@v1.9.1 RUN go install github.com/fullstorydev/grpcurl/cmd/grpcurl@v1.9.1
FROM ubuntu:22.04 FROM ubuntu:22.04
ENV GOEXPERIMENT=arenas ENV GOEXPERIMENT=arenas
RUN apt-get update && apt-get install -y ca-certificates RUN apt-get update && apt-get install -y curl grep ca-certificates
COPY --from=build /opt/node/node /usr/local/bin WORKDIR /opt/node/
COPY --from=build /opt/node/node.dgst /usr/local/bin
COPY --from=build /opt/node/node.dgst.sig.* /usr/local/bin
COPY --from=build /opt/node/qclient /usr/local/bin COPY ./node_file/ /usr/local/bin
COPY --from=build /opt/node/qclient.dgst /usr/local/bin
COPY --from=build /opt/node/qclient.dgst.sig.* /usr/local/bin
COPY --from=build /go/bin/grpcurl /usr/local/bin COPY --from=build /go/bin/grpcurl /usr/local/bin

View File

@ -40,8 +40,19 @@ fetchQclient() {
done done
} }
fetch
fetchQclient
chmod +x node
chmod +x qclient
rm -rf node_file
mkdir -p node_file mkdir -p node_file
mv ./* node_file/ mv ./node node_file/
mv ./qclient node_file/
mv ./node.* node_file/
mv ./qclient.* node_file/
docker build -f Dockerfile -t trancelife/quilibrium:latest . docker build -f Dockerfile -t trancelife/quilibrium:latest .
docker push trancelife/quilibrium:latest