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

20 lines
376 B
Docker
Raw Permalink Normal View History

2022-08-06 20:32:27 +00:00
FROM rust:alpine
2022-08-06 22:37:31 +00:00
COPY plugin.sh /bin/plugin.sh
2022-08-06 20:32:27 +00:00
RUN apk add --no-cache \
npm \
musl-dev \
2022-08-06 20:41:12 +00:00
openssl \
openssl-dev \
2022-08-06 21:03:19 +00:00
perl \
zlib \
2022-08-06 20:32:27 +00:00
make \
2022-08-07 01:25:12 +00:00
tzdata \
2022-08-07 00:34:03 +00:00
&& cargo install wasm-pack \
&& rustup target add wasm32-unknown-unknown \
2022-08-06 22:11:33 +00:00
&& chmod +x /bin/plugin.sh
2022-08-06 20:32:27 +00:00
2022-08-07 01:25:12 +00:00
ENV TZ=UTC
2022-08-07 00:51:10 +00:00
ENTRYPOINT ["/bin/sh", "/bin/plugin.sh"]