mirror of
https://github.com/alibaba/higress.git
synced 2026-04-20 11:37:27 +08:00
fix prebuild
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user