Skip to content

Commit fc0f34f

Browse files
committed
CLI: update docker image
the previous one ships a solana binary that doesn't support priority fees
1 parent 66d8fde commit fc0f34f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Dockerfile.cli

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# that the solana installer script just works, but you would be wrong. It seems
33
# to have been broken recently since the migration to the anza url.
44
# The old installer url returns a 403. So we instead rely on solana binaries cached on docker hub. Everything is fine.
5-
FROM backpackapp/build:v0.29.0@sha256:9aee169b2d8b89b4a4243419ae35c176773136e78d751b3e439eff692c9c1293 as base
5+
FROM backpackapp/build:v0.30.1@sha256:c160fe32cba7c463981110b2aac2924de4833c06a0af6473a830ead880c4ef3b as base
66

77
RUN apt update
88

@@ -19,6 +19,12 @@ RUN bash -ci "foundryup"
1919

2020
RUN apt install -y jq
2121

22+
FROM base as base-solana
23+
24+
RUN cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
25+
RUN avm install 0.29.0
26+
RUN avm use 0.29.0
27+
2228
FROM base as cli-remote
2329
# NOTE: when invoking the installer outside of the source tree, it clones the
2430
# repo and installs that way.
@@ -27,7 +33,7 @@ COPY cli/install.sh cli/install.sh
2733
RUN bash -ci "./cli/install.sh"
2834
RUN bash -ci "which ntt"
2935

30-
FROM base as cli-local
36+
FROM base-solana as cli-local
3137
# NOTE: when invoking the installer inside of the source tree, it installs from
3238
# the local source tree.
3339
# This build stage tests that path.

0 commit comments

Comments
 (0)