Skip to content

ratchetdesigns/wasm-pack-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wasm-pack-docker

Docker container for wasm-pack.

Usage

docker run --rm -v "$(pwd):/work" ratchetdesigns/wasm-pack new my-project --mode noinstall

You may want to add -v "path-to-cargo-cache:/usr/local/cargo/registry".

We run everything as uid 1000 by default, with a user named wasm-pack. The user name is used by wasm-pack to infer an author name so you might want to run with -e "USER=$USER".

Building

  1. Update build.sh with the desired node_version, npm_version, and wasm_pack_version.
  2. Bump the rust version in Dockerfile if desired.
  3. Run ./build.sh

About

wasm-pack docker repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published