mirror of
https://github.com/alibaba/higress.git
synced 2026-06-03 09:37:28 +08:00
feat: supports custom prepare build script (#1490)
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
FROM rust:1.80 as builder
|
||||
WORKDIR /workspace
|
||||
RUN apt update && apt-get install gcc gcc-multilib llvm clang -y && apt clean
|
||||
RUN rustup target add wasm32-wasi
|
||||
ARG PLUGIN_NAME="say-hello"
|
||||
ARG BUILD_OPTS="--release"
|
||||
ARG BUILDRC=".buildrc"
|
||||
COPY . .
|
||||
WORKDIR /workspace/extensions/$PLUGIN_NAME
|
||||
RUN if [ -f $BUILDRC ]; then sh $BUILDRC; fi
|
||||
RUN cargo build --target wasm32-wasi $BUILD_OPTS \
|
||||
&& cp target/wasm32-wasi/release/*.wasm /main.wasm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user