Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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