From 0a622c7cc8f802aee2ccf65cb8023febfee4c672 Mon Sep 17 00:00:00 2001 From: Kent Worcester <100624004+kent-3@users.noreply.github.com> Date: Mon, 24 Jul 2023 12:25:27 -0400 Subject: [PATCH] add --lib flag --- .../base-images/secret-contract-optimizer.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/dockerfiles/base-images/secret-contract-optimizer.Dockerfile b/deployment/dockerfiles/base-images/secret-contract-optimizer.Dockerfile index dd8fd8ad7..343db9ea3 100644 --- a/deployment/dockerfiles/base-images/secret-contract-optimizer.Dockerfile +++ b/deployment/dockerfiles/base-images/secret-contract-optimizer.Dockerfile @@ -6,7 +6,7 @@ RUN apt update && apt install -y binaryen clang && rm -rf /var/lib/apt/lists/* WORKDIR /contract ENTRYPOINT ["/bin/bash", "-c", "\ - RUSTFLAGS='-C link-arg=-s' cargo build --release --target wasm32-unknown-unknown --locked && \ + RUSTFLAGS='-C link-arg=-s' cargo build --release --lib --target wasm32-unknown-unknown --locked && \ (mkdir -p ./optimized-wasm/ && rm -f ./optimized-wasm/* && cp ./target/wasm32-unknown-unknown/release/*.wasm ./optimized-wasm/) && \ for w in ./optimized-wasm/*.wasm; do \ wasm-opt -Oz $w -o $w ; \