wasmer run syrusakbary/staticserver
WCGI Staticserver
Note: Code taken from old webc: https://github.com/wasmerio/pirita/tree/196e952b4da03fa6a28507f4334b0a18cac4d3f4/crates/wasi-cgi-staticserver
This library servers as an example of a dynamic CGI application that can be compiled to WCGI and run in WebC.
How to create the WebC container:
First, lets create the atom (the WebAssembly WASI Module).
cargo build --target=wasm32-wasi --release
Then, we can create our WebC container:
webc build
And you should be ready to run it with WebC runners!