Skip to content

nslebruh/wasm-docker-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple HTTP web server built in Rust compiled to WebAssembly and hosted using Docker

Prerequisites

  • Docker desktop is installed
  • ContainerD images for Docker desktop is enabled

To enable ContainerD images for Docker desktop:

  1. Open Docker desktop
  2. Navigate to docker settings
  3. Navigate to "Features in development"
  4. Select "Use containerd for pulling and storing images"
  5. Click apply and restart

To run:

Make sure that if you open the dockerfile, you check that it has been saved using LF (Line Feed) and not CRLF (Carriage Return Line Feed). For VSCode, this can be seen and changed through the status bar

git clone https://github.com/nslebruh/wasm-docker-test.git

cd ./wasm-docker-test

If using bash:

bash run.sh

If using other:

docker buildx build --platform wasi/wasm32 -t nslebruh/wasm-docker-test .
docker compose up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published