fix build
This commit is contained in:
parent
026288f5e4
commit
1fc0404a91
17
Dockerfile
17
Dockerfile
@ -2,28 +2,17 @@ FROM golang:1.22.4-bullseye as build
|
||||
|
||||
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
|
||||
|
||||
|
||||
FROM ubuntu:22.04
|
||||
|
||||
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
|
||||
COPY --from=build /opt/node/node.dgst /usr/local/bin
|
||||
COPY --from=build /opt/node/node.dgst.sig.* /usr/local/bin
|
||||
WORKDIR /opt/node/
|
||||
|
||||
COPY --from=build /opt/node/qclient /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 ./node_file/ /usr/local/bin
|
||||
|
||||
COPY --from=build /go/bin/grpcurl /usr/local/bin
|
||||
|
||||
|
||||
13
build.sh
13
build.sh
@ -40,8 +40,19 @@ fetchQclient() {
|
||||
done
|
||||
}
|
||||
|
||||
fetch
|
||||
fetchQclient
|
||||
|
||||
chmod +x node
|
||||
chmod +x qclient
|
||||
|
||||
rm -rf 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 push trancelife/quilibrium:latest
|
||||
|
||||
Loading…
Reference in New Issue
Block a user