|
@@ -3,10 +3,19 @@ FROM cli-gen AS cli-export
|
|
|
FROM const-gen AS const-export
|
|
FROM const-gen AS const-export
|
|
|
FROM ghcr.io/wormhole-foundation/solana:1.10.31@sha256:d31e8db926a1d3fbaa9d9211d9979023692614b7b64912651aba0383e8c01bad AS solana
|
|
FROM ghcr.io/wormhole-foundation/solana:1.10.31@sha256:d31e8db926a1d3fbaa9d9211d9979023692614b7b64912651aba0383e8c01bad AS solana
|
|
|
|
|
|
|
|
|
|
+RUN apt-get update
|
|
|
|
|
+
|
|
|
# libudev is needed by spl-token-cli, and ncat is needed by the devnet setup
|
|
# libudev is needed by spl-token-cli, and ncat is needed by the devnet setup
|
|
|
# script to be able to signal a health status for tilt
|
|
# script to be able to signal a health status for tilt
|
|
|
-RUN apt-get update && apt-get install -yq libudev-dev ncat
|
|
|
|
|
-RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs
|
|
|
|
|
|
|
+RUN apt-get install -y libudev-dev ncat 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
|
|
|
|
|
|
|
|
RUN --mount=type=cache,target=/root/.cache \
|
|
RUN --mount=type=cache,target=/root/.cache \
|
|
|
cargo install --version =2.0.12 --locked spl-token-cli
|
|
cargo install --version =2.0.12 --locked spl-token-cli
|