update emscripten
This commit is contained in:
parent
48193e89b6
commit
516f3efcc9
@ -3,11 +3,17 @@ FROM ubuntu:19.04
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
g++ \
|
||||
make \
|
||||
file \
|
||||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libc6-dev \
|
||||
python \
|
||||
cmake \
|
||||
sudo \
|
||||
gdb \
|
||||
xz-utils
|
||||
|
||||
COPY emscripten.sh /
|
||||
|
@ -15,6 +15,6 @@ set -ex
|
||||
source /emsdk-portable/emsdk_env.sh &> /dev/null
|
||||
|
||||
# emsdk-portable provides a node binary, but we need version 8 to run wasm
|
||||
export PATH="/node-v8.0.0-linux-x64/bin:$PATH"
|
||||
export PATH="/node-v12.3.1-linux-x64/bin:$PATH"
|
||||
|
||||
exec "$@"
|
||||
|
@ -34,8 +34,8 @@ curl --retry 5 -L https://s3.amazonaws.com/mozilla-games/emscripten/releases/ems
|
||||
|
||||
cd /emsdk-portable
|
||||
./emsdk update
|
||||
hide_output ./emsdk install sdk-1.37.20-64bit
|
||||
./emsdk activate sdk-1.37.20-64bit
|
||||
hide_output ./emsdk install sdk-1.38.15-64bit
|
||||
./emsdk activate sdk-1.38.15-64bit
|
||||
|
||||
# Compile and cache libc
|
||||
# shellcheck disable=SC1091
|
||||
@ -51,6 +51,6 @@ chmod a+rxw -R /emsdk-portable
|
||||
|
||||
# node 8 is required to run wasm
|
||||
cd /
|
||||
curl --retry 5 -L https://nodejs.org/dist/v8.0.0/node-v8.0.0-linux-x64.tar.xz | \
|
||||
curl --retry 5 -L https://nodejs.org/dist/v12.3.1/node-v12.3.1-linux-x64.tar.xz | \
|
||||
tar -xJ
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user