Created
November 1, 2021 13:11
-
-
Save elazar/08323ee3659beba267acae6305c8e840 to your computer and use it in GitHub Desktop.
rustwasm + docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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