2023-05-19 17:34:06 -07:00
|
|
|
FROM cli-gen AS cli-export
|
|
|
|
FROM const-gen AS const-export
|
2023-08-25 11:19:25 -07:00
|
|
|
FROM ghcr.io/wormhole-foundation/aptos:2.0.3@sha256:1e79c5a615b10073a780122abfaaf9b90735912df560b4e7b6a056fe45816392 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-08-25 11:19:25 -07:00
|
|
|
# Install nodejs
|
2023-05-19 17:34:06 -07:00
|
|
|
# todo(aki): move this into base image?
|
2023-11-01 12:32:19 -07:00
|
|
|
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
|
2023-05-19 17:34:06 -07:00
|
|
|
|
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
|