Skip to content

Commit

Permalink
chore: Install specific anchor version
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista committed Aug 12, 2024
1 parent 71d1043 commit cc6af83
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ FROM node:$NODE_VERSION AS base

ARG RUST_TOOLCHAIN_VERSION=1.75.0
ARG SOLANA_VERSION=1.18.17
ARG ANCHOR_VERSION=0.30.1

WORKDIR /app

Expand Down Expand Up @@ -90,7 +91,10 @@ RUN rm -rf ./solana-*
RUN cargo install --git https://github.com/coral-xyz/anchor avm

# Install anchor
RUN avm install latest && avm use latest
RUN avm install v${ANCHOR_VERSION}

# Install AVM
RUN avm use v${ANCHOR_VERSION}

# Install foundry
RUN curl -L https://foundry.paradigm.xyz | bash
Expand Down

0 comments on commit cc6af83

Please sign in to comment.