-
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.
- bump versions - simplify azle Dockerfile as latest azle is a lot nicer :)
- Loading branch information
Showing
3 changed files
with
11 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
FROM --platform=linux/amd64 node:20-bookworm-slim | ||
FROM --platform=linux/amd64 node:slim | ||
|
||
# Install a basic environment needed for our build tools | ||
RUN apt-get -yq update | ||
RUN apt-get -yqq install --no-install-recommends curl ca-certificates \ | ||
build-essential pkg-config libssl-dev llvm-dev liblmdb-dev clang cmake rsync git \ | ||
libunwind-dev | ||
RUN apt -yq update | ||
RUN apt -yqq install --no-install-recommends curl ca-certificates libunwind-dev git python3 | ||
|
||
# Install dfx | ||
RUN DFX_VERSION=0.24.1 DFXVM_INIT_YES=true sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)" | ||
RUN DFX_VERSION=0.24.2 DFXVM_INIT_YES=true sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)" | ||
ENV PATH="/root/.local/share/dfx/bin:$PATH" | ||
|
||
# Dug out from [here](https://github.com/demergent-labs/azle/blob/main/.github/workflows/test.yml#L251) | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.73.0 --profile=minimal | ||
ENV PATH="/root/.cargo/bin:$PATH" | ||
RUN rustup target add wasm32-wasi | ||
|
||
RUN cargo install --git https://github.com/wasm-forge/wasi2ic --rev 806c3558aad24224852a9582f018178402cb3679 | ||
|
||
RUN git clone https://github.com/demergent-labs/wasmedge-quickjs && cd wasmedge-quickjs && git checkout c21ff69f442998e4cda4619166e23a9bc91418be | ||
RUN mkdir -p ${HOME}/.config/azle | ||
RUN mv /wasmedge-quickjs ${HOME}/.config/azle/wasmedge-quickjs_$(npx [email protected] dockerfile-hash) | ||
# Install azle extension | ||
RUN npx [email protected] install-dfx-extension | ||
|
||
# Clean apt | ||
RUN apt-get autoremove && apt-get clean |
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