Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dOrgJelli committed Jun 2, 2022
1 parent 21e8b89 commit be62300
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/cli/src/lib/build-envs/wasm/rust/Dockerfile.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ RUN curl -L https://github.com/WebAssembly/binaryen/releases/download/version_10
&& cp binaryen-version_101/bin/wasm-opt /usr/local/bin/ \
&& rm -rf binary-version_101

{{#web3api_linked_packages.length}}
WORKDIR /linked-packages
{{/web3api_linked_packages.length}}

{{#web3api_linked_packages.length}}
# Install the toml-cli
RUN cargo install toml-cli

{{#web3api_linked_packages.length}}
WORKDIR /linked-packages
{{/web3api_linked_packages.length}}

{{#web3api_linked_packages}}
Expand Down Expand Up @@ -106,5 +104,6 @@ RUN mkdir ./build

# Use wasm-opt to perform the "asyncify" post-processing step over all modules
{{#web3api_modules}}
RUN wasm-opt --asyncify -O2 ./{{dir}}/target/wasm32-unknown-unknown/release/{{name}}.wasm -o ./build/{{name}}.wasm
RUN WASM_MODULE=$(ls ./{{dir}}/target/wasm32-unknown-unknown/release/*.wasm); \
wasm-opt --asyncify -O2 $WASM_MODULE -o ./build/{{name}}.wasm
{{/web3api_modules}}

0 comments on commit be62300

Please sign in to comment.