| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- FROM cli-gen AS cli-export
- FROM const-gen AS const-export
- FROM ghcr.io/wormhole-foundation/aptos:3.1.0@sha256:f66c2b5fea4a75050d051a5260ef643f52f5048d473877f1760be39d9e460d6b AS aptos
- # Install nodejs
- # todo(aki): move this into base image?
- RUN apt-get update
- RUN apt-get install -y ca-certificates curl gnupg
- RUN mkdir -p /etc/apt/keyrings
- RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
- ARG NODE_MAJOR=18
- RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
- RUN apt-get update
- RUN apt-get install nodejs -y
- WORKDIR /tmp
- COPY wormhole/ wormhole
- COPY token_bridge/ token_bridge
- COPY nft_bridge/ nft_bridge
- COPY deployer/ deployer
- COPY coin/ coin
- COPY examples/ examples
- COPY Makefile Makefile
- COPY scripts scripts
- 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
- FROM aptos AS tests
- WORKDIR /tmp
- RUN make test
|