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 ; \