Skip to content

Instantly share code, notes, and snippets.

@elazar
Created November 1, 2021 13:11
Show Gist options
  • Save elazar/08323ee3659beba267acae6305c8e840 to your computer and use it in GitHub Desktop.
Save elazar/08323ee3659beba267acae6305c8e840 to your computer and use it in GitHub Desktop.
rustwasm + docker
# https://rustwasm.github.io/docs/book/game-of-life/setup.html
FROM rust:alpine3.14
# https://users.rust-lang.org/t/sigsegv-with-program-linked-against-openssl-in-an-alpine-container/52172
ENV RUSTFLAGS="-C target-feature=-crt-static"
RUN apk update
RUN apk add build-base openssl-dev perl npm git
RUN cargo install wasm-pack cargo-generate
RUN npm install -g create-wasm-app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment