Toolchain image for Emscripten, a source-to-source compiler that runs as a back end to the LLVM compiler.
Usage: Create hello.cpp and compile to hello.wasm
New-item hello.cpp -Value "#include <iostream>
using namespace std;
int main() {
cout << `"Hello World`" << endl;
}"
docker run --rm -v $pwd`:/target mziyabo/emscripten emcc ./hello.cpp -o hello.wasm
Executable image for Wasmtime, a JIT-style runtime for WebAssembly.
Usage
Execute ./hello.wasm in wasmtime
docker run --rm -v ${pwd}:/target mziyabo/wasmtime ./hello.wasm
- Emscripten image is a little beefy
- Might need to address adding link library and includes directories