Sign inSign up

rustropy/small-http-server

By rustropy

•Updated almost 4 years ago

Small docker image with http server that serves static directory running on wasmedge (less than 2mb)

Image
1

65

rustropy/small-http-server repository overview

⁠Small http Server (docker image less than 2mb)

Build with wasmedge

⁠How to use?

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

⁠Source Code

https://github.com/alanpoon/warp/blob/master/examples/dir_env.rs⁠

⁠Requirement

  • Docker desktop > v4.15
  • Docker desktop Setting (Features in development) -- Use containerd for pulling and storing images -- May require setting bios to use virtualization

Tag summary

Content type

Image

Digest

sha256:1e070ccaa…

Size

1.2 MB

Last updated

almost 4 years ago

docker pull rustropy/small-http-server:0.1