https://github.com/dcsunset/docker-rust-wasm
A docker image for compiling rust-wasm based on alpine image.
https://github.com/dcsunset/docker-rust-wasm
Last synced: 3 months ago
JSON representation
A docker image for compiling rust-wasm based on alpine image.
- Host: GitHub
- URL: https://github.com/dcsunset/docker-rust-wasm
- Owner: DCsunset
- License: mit
- Created: 2020-11-16T08:28:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-16T08:39:51.000Z (over 4 years ago)
- Last Synced: 2024-12-31T09:44:48.565Z (5 months ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-rust-wasm
[](https://hub.docker.com/r/dcsunset/rust-wasm)
[](https://hub.docker.com/r/dcsunset/rust-wasm)A docker image for compiling rust-wasm based on alpine image.
## Usage
Mount your rust wasm project or cargo config into the container and compile it:
```
docker run -v :/repo -v :/root/.cargo/ -w /repo dcsunset/rust-wasm wasm-pack build
```Or you could gain more control by using the shell:
```
docker run -v :/repo -v :/root/.cargo/ -w /repo dcsunset/rust-wasm sh
```## License
MIT License