Skip to content

Commit 1d0174a

Browse files
fix: Install Rust toolchain explicitly in graph-toolbox Dockerfile (#287)
This change ensures the Rust toolchain is installed after dependencies but before running npm, addressing the issue where rustup no longer automatically installs the active toolchain. The fix uses 'rustup target add' and 'rustup toolchain install' to explicitly install the required toolchain for the target architecture. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]>
1 parent 2a56830 commit 1d0174a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dockerfiles/graph-toolbox/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ RUN apt-get -q update \
2626
libpq-dev \
2727
ca-certificates
2828

29+
# Ensure the Rust toolchain is installed for the target architecture
30+
RUN rustup target add ${TARGET} && rustup toolchain install stable-${TARGET}
31+
2932
RUN mkdir /src
3033

3134
WORKDIR /src
@@ -73,6 +76,9 @@ RUN mkdir -p /etc/apt/keyrings && \
7376
apt-get update && \
7477
apt-get install nodejs -y
7578

79+
# Ensure the Rust toolchain is installed for the target architecture
80+
RUN rustup target add ${TARGET} && rustup toolchain install stable-${TARGET}
81+
7682
RUN npm install --global yarn && \
7783
yarn global add nan @graphprotocol/graph-cli@${GRAPH_CLI_VERSION} @graphprotocol/indexer-cli@${INDEXER_CLI_VERSION}
7884

0 commit comments

Comments
 (0)