game-algorithms/tools/wasm-pack-plugin/Dockerfile

16 lines
331 B
Docker

FROM rust:alpine
COPY plugin.sh /bin/plugin.sh
RUN apk add --no-cache \
npm \
musl-dev \
openssl \
openssl-dev \
perl \
zlib \
make \
&& cargo install wasm-pack \
&& rustup target add wasm32-unknown-unknown \
&& chmod +x /bin/plugin.sh
ENTRYPOINT /bin/plugin.sh