dockerfile: include entire wamr repo
This commit is contained in:
@ -64,11 +64,16 @@ RUN apt-get update \
|
||||
wabt \
|
||||
&& apt-get clean
|
||||
|
||||
COPY --from=wamr-builder /wasm-micro-runtime/build /opt/wamr-vmcore
|
||||
COPY --from=wamr-builder /wasm-micro-runtime/wamr-compiler/build /opt/wamr-wamrc
|
||||
COPY --from=wamr-builder /wasm-micro-runtime/product-mini/platforms/linux/build /opt/wamr-iwasm
|
||||
COPY ./examples /home/ubuntu/examples
|
||||
COPY --from=wamr-builder /wasm-micro-runtime /opt/wamr
|
||||
# COPY --from=wamr-builder /wasm-micro-runtime/build /opt/wamr-vmcore
|
||||
# COPY --from=wamr-builder /wasm-micro-runtime/wamr-compiler/build /opt/wamr-wamrc
|
||||
# COPY --from=wamr-builder /wasm-micro-runtime/product-mini/platforms/linux/build /opt/wamr-iwasm
|
||||
|
||||
RUN ln -sf /opt/wamr/build /opt/wamr-vmcore \
|
||||
&& ln -sf /opt/wamr/wamr-compiler/build /opt/wamr-wamrc \
|
||||
&& ln -sf /opt/wamr/product-mini/platforms/linux/build /opt/wamr-iwasm
|
||||
|
||||
COPY ./examples /home/ubuntu/examples
|
||||
WORKDIR /home/ubuntu/examples
|
||||
|
||||
ENV PATH="$PATH:/opt/wasi-sdk/bin:/opt/wamr-iwasm:/opt/wamr-wamrc"
|
||||
|
||||
@ -16,11 +16,13 @@ AOTS := $(WASMS:.wasm=.aot)
|
||||
|
||||
build-all: build-wasms build-aots
|
||||
|
||||
# Compile to wasm bytecode using wasi-sdk
|
||||
build-wasms: $(WASMS)
|
||||
|
||||
%.wasm: %.c
|
||||
$(CLANG) $(CFLAGS) $< -o $@
|
||||
|
||||
# Compile ahead-of-time module using wamrc
|
||||
build-aots: $(AOTS)
|
||||
|
||||
%.aot: %.wasm
|
||||
|
||||
Reference in New Issue
Block a user