Dockerfile 450 B

12345678910111213141516171819202122232425
  1. FROM golang:1.22.4-bullseye as build
  2. WORKDIR /opt/node/
  3. RUN go install github.com/fullstorydev/grpcurl/cmd/grpcurl@v1.9.1
  4. FROM ubuntu:22.04
  5. ENV GOEXPERIMENT=arenas
  6. RUN apt-get update && apt-get install -y curl grep ca-certificates
  7. WORKDIR /opt/node/
  8. COPY ./node_file/ /usr/local/bin
  9. COPY --from=build /go/bin/grpcurl /usr/local/bin
  10. WORKDIR /root
  11. COPY entrypoint.sh /entrypoint.sh
  12. RUN chmod +x /entrypoint.sh
  13. ENTRYPOINT ["/entrypoint.sh"]