2023-05-19 17:34:06 -07:00
|
|
|
FROM cli-gen AS cli-export
|
|
|
|
FROM const-gen AS const-export
|
2023-05-31 15:47:00 -07:00
|
|
|
FROM ghcr.io/wormhole-foundation/aptos:1.0.4_2@sha256:020ff492894ad93fd5ad94f75c93e791b191983d0f40fe7dae793758fd0f96f9 as aptos
|
2022-10-13 18:21:26 -07:00
|
|
|
|
|
|
|
# Support additional root CAs
|
|
|
|
COPY cert.pem* /certs/
|
|
|
|
RUN if [ -e /certs/cert.pem ]; then cp /certs/cert.pem /etc/ssl/certs/ca-certificates.crt; fi
|
|
|
|
|
2023-05-19 17:34:06 -07:00
|
|
|
# Install nodejs
|
|
|
|
# todo(aki): move this into base image?
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get update && apt-get install -y nodejs
|
|
|
|
|
2022-10-13 18:21:26 -07:00
|
|
|
WORKDIR /tmp
|
|
|
|
|
|
|
|
COPY wormhole/ wormhole
|
|
|
|
COPY token_bridge/ token_bridge
|
2022-12-12 22:35:12 -08:00
|
|
|
COPY nft_bridge/ nft_bridge
|
2022-10-13 18:21:26 -07:00
|
|
|
COPY deployer/ deployer
|
|
|
|
COPY coin/ coin
|
|
|
|
COPY examples/ examples
|
|
|
|
COPY Makefile Makefile
|
|
|
|
COPY scripts scripts
|
2023-05-19 17:34:06 -07:00
|
|
|
COPY start_node.sh start_node.sh
|
|
|
|
COPY --from=const-export .env .env
|
|
|
|
COPY --from=cli-export clients/js /cli
|
|
|
|
|
|
|
|
WORKDIR /cli
|
|
|
|
|
|
|
|
RUN npm link
|
2022-10-13 18:21:26 -07:00
|
|
|
|
|
|
|
FROM aptos AS tests
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
2023-05-19 17:34:06 -07:00
|
|
|
RUN make test
|