-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add new slimmer image without PocketIC (#13)
- bump versions of dfx, node, nvm
- Loading branch information
Showing
4 changed files
with
69 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM --platform=linux/amd64 rust:1.75-slim-bookworm | ||
|
||
ENV NVM_DIR=/root/.nvm | ||
ENV NVM_VERSION=v0.40.1 | ||
ENV NODE_VERSION=22.10.0 | ||
ENV DFX_VERSION=0.24.0 | ||
|
||
RUN apt -yq update | ||
RUN apt -yqq install --no-install-recommends curl ca-certificates libunwind-dev git | ||
|
||
# Install Node.js using nvm | ||
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin:${PATH}" | ||
RUN curl --fail -sSf https://raw.githubusercontent.com/creationix/nvm/${NVM_VERSION}/install.sh | bash | ||
RUN . "${NVM_DIR}/nvm.sh" && nvm install ${NODE_VERSION} | ||
RUN . "${NVM_DIR}/nvm.sh" && nvm use v${NODE_VERSION} | ||
RUN . "${NVM_DIR}/nvm.sh" && nvm alias default v${NODE_VERSION} | ||
|
||
# Install dfx | ||
RUN DFXVM_INIT_YES=true sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)" | ||
ENV PATH="/root/.local/share/dfx/bin:$PATH" | ||
ENV DFX_VERSION= | ||
|
||
# Add wasm32-unknown-unknown target | ||
RUN rustup target add wasm32-unknown-unknown | ||
|
||
# Clean apt | ||
RUN apt-get autoremove && apt-get clean |