From 7354d80263c6887e852e5e6343427ffcc04433b6 Mon Sep 17 00:00:00 2001 From: 007gzs <007gzs@gmail.com> Date: Thu, 27 Feb 2025 11:42:34 +0800 Subject: [PATCH] fix prebuild --- plugins/wasm-rust/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/wasm-rust/Dockerfile b/plugins/wasm-rust/Dockerfile index b2c6725b1..ffdea8c53 100644 --- a/plugins/wasm-rust/Dockerfile +++ b/plugins/wasm-rust/Dockerfile @@ -3,10 +3,10 @@ WORKDIR /workspace RUN rustup target add wasm32-wasip1 ARG PLUGIN_NAME="say-hello" ARG BUILD_OPTS="--release" -ARG BUILDRC=".buildrc" +ARG PREBUILD=".prebuild" COPY . . WORKDIR /workspace/extensions/$PLUGIN_NAME -RUN if [ -f $BUILDRC ]; then sh $BUILDRC; fi +RUN if [ -f $PREBUILD ]; then sh $PREBUILD; fi RUN cargo build --target wasm32-wasip1 $BUILD_OPTS \ && cp target/wasm32-wasip1/release/*.wasm /main.wasm