mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-07-15 08:48:33 +00:00
Update build and add testing dockerfile and run
This commit is contained in:
parent
9383336154
commit
2981fc2afc
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM ubuntu:20.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build.essential \
|
||||
cmake \
|
||||
git \
|
||||
wget
|
||||
|
||||
RUN wget -q https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-14/wasi-sdk-14.0-linux.tar.gz && \
|
||||
tar xf wasi-sdk-*-linux.tar.gz -C /opt && rm -f wasi-sdk-*-linux.tar.gz && \
|
||||
mv /opt/wasi-sdk-$(WASI_SDK_VERSION) /opt/wasi-sdk
|
|
@ -51,6 +51,7 @@ OUT_FILE=${i%.*}.wasm
|
|||
-Wl,--export=float_to_string \
|
||||
-Wl,--export=calculate\
|
||||
-Wl,--allow-undefined \
|
||||
-I/home/core/iwasm/libraries/wasi-nn \
|
||||
-o ${OUT_DIR}/wasm-apps/${OUT_FILE} ${APP_SRC}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user