2023-05-19 17:34:06 -07:00
|
|
|
FROM cli-gen AS cli-export
|
|
|
|
FROM const-gen AS const-export
|
2024-12-10 19:37:55 -08:00
|
|
|
FROM ghcr.io/wormhole-foundation/sui:1.19.1-mainnet@sha256:97e2e62d43262883b7a5bed5c9a9dd83d766a00a9476473eb275948fb53d376e AS sui
|
2023-01-12 11:36:42 -08:00
|
|
|
|
2024-04-15 09:16:07 -07:00
|
|
|
# initial run
|
|
|
|
# COPY sui/devnet/genesis_config genesis_config
|
|
|
|
# RUN sui genesis -f --from-config genesis_config
|
2023-01-12 11:36:42 -08:00
|
|
|
|
2024-04-15 09:16:07 -07:00
|
|
|
# subsequent runs after committing files from /root/.sui/sui_config/
|
2023-05-02 09:22:30 -07:00
|
|
|
COPY sui/devnet/ /root/.sui/sui_config/
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
|
|
|
COPY sui/scripts/ scripts
|
|
|
|
COPY sui/wormhole/ wormhole
|
|
|
|
COPY sui/token_bridge/ token_bridge
|
|
|
|
COPY sui/examples/ examples
|
|
|
|
COPY sui/Makefile Makefile
|
2023-05-19 17:34:06 -07:00
|
|
|
|
|
|
|
# Copy .env and CLI
|
|
|
|
COPY --from=const-export .env .env
|
|
|
|
COPY --from=cli-export clients/js /cli
|
|
|
|
|
|
|
|
# Link `worm`
|
|
|
|
WORKDIR /cli
|
|
|
|
|
|
|
|
RUN npm link
|
2023-01-12 11:36:42 -08:00
|
|
|
|
|
|
|
FROM sui AS tests
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
2023-05-02 09:22:30 -07:00
|
|
|
RUN --mount=type=cache,target=/root/.move,id=move_cache make test
|