mirror of
https://github.com/alibaba/higress.git
synced 2026-02-28 22:50:57 +08:00
Wasm cpp bazel (#446)
This commit is contained in:
16
plugins/wasm-cpp/Dockerfile
Normal file
16
plugins/wasm-cpp/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
ARG BUILDER=higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/build-tools-proxy:release-1.12-2021-12-09T23-01-43
|
||||
FROM $BUILDER as builder
|
||||
|
||||
ARG PLUGIN_NAME
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN bazel build //extensions/$PLUGIN_NAME:$PLUGIN_NAME.wasm
|
||||
|
||||
FROM scratch as output
|
||||
|
||||
ARG PLUGIN_NAME
|
||||
|
||||
COPY --from=builder /workspace/bazel-bin/extensions/$PLUGIN_NAME/$PLUGIN_NAME.wasm plugin.wasm
|
||||
Reference in New Issue
Block a user