From 80fdcebd7c1f3c551e161e598ad3ac9e5cd8823c Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Sun, 19 Mar 2023 09:27:34 +0100 Subject: [PATCH] [wasm] Prime the emscripten cache (#826) --- src/ubuntu/18.04/webassembly-net8/Dockerfile | 1 + src/ubuntu/20.04/webassembly-net8/Dockerfile | 1 + .../ltsc2022/helix/webassembly-net8/Dockerfile | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ubuntu/18.04/webassembly-net8/Dockerfile b/src/ubuntu/18.04/webassembly-net8/Dockerfile index 84b37f973..abf9e34fd 100644 --- a/src/ubuntu/18.04/webassembly-net8/Dockerfile +++ b/src/ubuntu/18.04/webassembly-net8/Dockerfile @@ -34,6 +34,7 @@ RUN mkdir ${EMSCRIPTEN_PATH} \ && cd ${EMSDK_PATH} \ && ./emsdk install ${EMSCRIPTEN_VERSION}-upstream \ && ./emsdk activate ${EMSCRIPTEN_VERSION}-upstream \ + && ./upstream/emscripten/embuilder build MINIMAL \ && chmod -R 777 ${EMSCRIPTEN_PATH} # Install V8 Engine diff --git a/src/ubuntu/20.04/webassembly-net8/Dockerfile b/src/ubuntu/20.04/webassembly-net8/Dockerfile index 8c5c24751..b2edbea77 100644 --- a/src/ubuntu/20.04/webassembly-net8/Dockerfile +++ b/src/ubuntu/20.04/webassembly-net8/Dockerfile @@ -35,6 +35,7 @@ RUN mkdir ${EMSCRIPTEN_PATH} \ && cd ${EMSDK_PATH} \ && ./emsdk install ${EMSCRIPTEN_VERSION}-upstream \ && ./emsdk activate ${EMSCRIPTEN_VERSION}-upstream \ + && ./upstream/emscripten/embuilder build MINIMAL \ && chmod -R 777 ${EMSCRIPTEN_PATH} # Install V8 Engine diff --git a/src/windowsservercore/ltsc2022/helix/webassembly-net8/Dockerfile b/src/windowsservercore/ltsc2022/helix/webassembly-net8/Dockerfile index 73fcbcbe0..ca81717c9 100644 --- a/src/windowsservercore/ltsc2022/helix/webassembly-net8/Dockerfile +++ b/src/windowsservercore/ltsc2022/helix/webassembly-net8/Dockerfile @@ -33,7 +33,8 @@ RUN mkdir %EMSCRIPTEN_PATH% \ && git clone https://github.com/emscripten-core/emsdk.git %EMSDK_PATH% RUN cd %EMSDK_PATH% \ && .\emsdk install %EMSCRIPTEN_VERSION%-upstream \ - && .\emsdk activate %EMSCRIPTEN_VERSION%-upstream + && .\emsdk activate %EMSCRIPTEN_VERSION%-upstream \ + && .\upstream\emscripten\embuilder.bat build MINIMAL # install Node JS ENV NODE_VERSION 17.3.1