Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 days 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 (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-16T08:39:51.000Z (about 4 years ago)
- Last Synced: 2024-11-08T08:55:03.069Z (about 2 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
[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/dcsunset/rust-wasm)](https://hub.docker.com/r/dcsunset/rust-wasm)
[![Docker Image Size](https://badgen.net/docker/size/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