Skip to content

Commit

Permalink
chore: Bump rust (#15)
Browse files Browse the repository at this point in the history
- install candid extractor not through cargo as it uses more storage
  • Loading branch information
fxgst authored Oct 29, 2024
1 parent 04c238f commit 27a7521
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 rust:1.75-slim-bookworm
FROM --platform=linux/amd64 rust:1.82-slim-bookworm

ENV NVM_DIR=/root/.nvm
ENV NVM_VERSION=v0.40.1
Expand Down
6 changes: 4 additions & 2 deletions slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 rust:1.75-slim-bookworm
FROM --platform=linux/amd64 rust:1.82-slim-bookworm

ENV NVM_DIR=/root/.nvm
ENV NVM_VERSION=v0.40.1
Expand All @@ -24,7 +24,9 @@ ENV DFX_VERSION=
RUN rustup target add wasm32-unknown-unknown

# Install candid-extractor
RUN cargo install candid-extractor
RUN curl -fsSL https://github.com/dfinity/candid-extractor/releases/download/0.1.5/candid-extractor-x86_64-unknown-linux-gnu.tar.gz -o candid-extractor.tar.gz
RUN tar -xvf candid-extractor.tar.gz && rm candid-extractor.tar.gz
RUN mv candid-extractor /usr/local/bin

# Clean apt
RUN apt-get autoremove && apt-get clean

0 comments on commit 27a7521

Please sign in to comment.