diff --git a/docs/wasm-wasi-example.md b/docs/wasm-wasi-example.md index 85d56ca2d2..eae26de9d2 100644 --- a/docs/wasm-wasi-example.md +++ b/docs/wasm-wasi-example.md @@ -27,7 +27,7 @@ podman run -it -p 8080:8080 --name=wasm-example --platform=wasi/wasm32 micha println!("{}", "This is from a main function from a wasm module"); } ``` -* Compile to `wasm32-wasi` target using `wasm-pack` or any other relevant tool. We are going to be using `cargo build --target wasm32-wasi` +* Compile to `wasm32-wasip1` target using `wasm-pack` or any other relevant tool. We are going to be using `cargo build --target wasm32-wasip2` * Create relevant image and use your container manager. But for this example we will be running directly using crun and plub config manually. ```console $ crun run wasm-container diff --git a/tests/wasmedge-build/Dockerfile b/tests/wasmedge-build/Dockerfile index e953269bb0..fd0d2b1d93 100644 --- a/tests/wasmedge-build/Dockerfile +++ b/tests/wasmedge-build/Dockerfile @@ -1,4 +1,5 @@ FROM fedora:latest + ARG WASM_EDGE_VERSION="0.14.0" # Install the deps for building crun @@ -21,10 +22,10 @@ ADD hello_wasm /hello_wasm RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y SHELL ["/bin/bash", "-c"] RUN source "$HOME/.cargo/env" && \ - rustup target add wasm32-wasi && \ + rustup target add wasm32-wasip1 && \ cd /hello_wasm/hello && \ - cargo build --release --target wasm32-wasi && \ - cp ./target/wasm32-wasi/release/hello.wasm /hello_wasm && \ + cargo build --release --target wasm32-wasip1 && \ + cp ./target/wasm32-wasip1/release/hello.wasm /hello_wasm && \ cd / && \ rm -rf /hello_wasm/hello