Dockerfile.ict 877 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. FROM golang:1.22.5@sha256:86a3c48a61915a8c62c0e1d7594730399caa3feb73655dfe96c7bc17710e96cf AS builder
  2. WORKDIR /app
  3. # Install dependencies
  4. RUN apt update && \
  5. apt-get install -y \
  6. build-essential \
  7. ca-certificates \
  8. curl
  9. # Enable faster module downloading.
  10. ENV GOPROXY https://proxy.golang.org
  11. COPY ./wormchain/go.mod .
  12. COPY ./wormchain/go.sum .
  13. COPY ./sdk /sdk
  14. RUN go mod download
  15. COPY ./wormchain .
  16. RUN make build/wormchaind
  17. FROM golang:1.22.5@sha256:86a3c48a61915a8c62c0e1d7594730399caa3feb73655dfe96c7bc17710e96cf
  18. WORKDIR /home/heighliner
  19. COPY --from=builder /app/build/wormchaind /usr/bin
  20. # copy over c bindings (libwasmvm.x86_64.so, etc)
  21. COPY --from=builder /go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.1.1/internal/api/* /usr/lib/
  22. EXPOSE 26657
  23. EXPOSE 26656
  24. EXPOSE 6060
  25. EXPOSE 9090
  26. EXPOSE 1317
  27. EXPOSE 4500
  28. ENTRYPOINT [ "wormchaind" ]