Small docker image with http server that serves static directory running on wasmedge (less than 2mb)
65
Build with wasmedge
docker container run --rm --name=small-http-server
--runtime=io.containerd.wasmedge.v1
--platform=wasi/wasm32
--publish=3030:3030
--env DIR=./dir
--env PORT=3030
-v {absolute_path}:/dir
rustropy/small-http-server:0.1
https://github.com/alanpoon/warp/blob/master/examples/dir_env.rs
Content type
Image
Digest
sha256:1e070ccaa…
Size
1.2 MB
Last updated
almost 4 years ago
docker pull rustropy/small-http-server:0.1