wormhole/sui/Dockerfile

34 lines
809 B
Docker
Raw Normal View History

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
# 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
# subsequent runs after committing files from /root/.sui/sui_config/
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
# 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
RUN --mount=type=cache,target=/root/.move,id=move_cache make test