Dockerfile 875 B

12345678910111213141516171819202122232425262728293031323334
  1. FROM cli-gen AS cli-export
  2. FROM const-gen AS const-export
  3. FROM ghcr.io/wormhole-foundation/sui:1.0.0-testnet_1@sha256:806fc83e7bbd59bca0a1960870d27b041d0b99a286d7eccfcec25beb74c2346c as sui
  4. COPY sui/README.md sui/cert.pem* /certs/
  5. RUN if [ -e /certs/cert.pem ]; then cp /certs/cert.pem /etc/ssl/certs/ca-certificates.crt; fi
  6. RUN if [ -e /certs/cert.pem ]; then git config --global http.sslCAInfo /certs/cert.pem; fi
  7. RUN sui genesis -f
  8. COPY sui/devnet/ /root/.sui/sui_config/
  9. WORKDIR /tmp
  10. COPY sui/scripts/ scripts
  11. COPY sui/wormhole/ wormhole
  12. COPY sui/token_bridge/ token_bridge
  13. COPY sui/examples/ examples
  14. COPY sui/Makefile Makefile
  15. # Copy .env and CLI
  16. COPY --from=const-export .env .env
  17. COPY --from=cli-export clients/js /cli
  18. # Link `worm`
  19. WORKDIR /cli
  20. RUN npm link
  21. FROM sui AS tests
  22. WORKDIR /tmp
  23. RUN --mount=type=cache,target=/root/.move,id=move_cache make test