-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
14 lines (11 loc) · 752 Bytes
/
Copy pathDockerfile
File metadata and controls
14 lines (11 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Pin emsdk for reproducible builds. Bump deliberately; verify the wasm still
# links (recent emsdk links object-only inputs as C — the Makefile uses em++).
FROM docker.io/emscripten/emsdk:6.0.8
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo install wasi-stub
# Install official binaryen release (overrides emsdk's patched version for reproducible builds)
ARG BINARYEN_VERSION=128
RUN curl -sL https://github.com/WebAssembly/binaryen/releases/download/version_${BINARYEN_VERSION}/binaryen-version_${BINARYEN_VERSION}-x86_64-linux.tar.gz \
| tar xz -C /usr/local/bin --strip-components=2 binaryen-version_${BINARYEN_VERSION}/bin/wasm-opt
WORKDIR /src