diff --git a/wasm-container-runtime/Dockerfile b/wasm-container-runtime/Dockerfile new file mode 100644 index 0000000..75c89a1 --- /dev/null +++ b/wasm-container-runtime/Dockerfile @@ -0,0 +1,12 @@ +# Build phase +FROM emscripten/emsdk AS build +RUN mkdir -p /build +WORKDIR /build +COPY src ./src +RUN emcc ./src/main.c -o ./main.wasm +RUN chmod a+x ./main.wasm + +# Run phase +FROM scratch +COPY --from=build /build/main.wasm /main.wasm +ENTRYPOINT [ "/main.wasm" ] \ No newline at end of file