Skip to content

Commit

Permalink
chore: don't manually override node version (#246)
Browse files Browse the repository at this point in the history
as of emsdk 3.1.42 Node 16 is used by default
  • Loading branch information
jeswr authored Jun 26, 2023
1 parent 030346b commit 05c6a7b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ FROM emscripten/emsdk:$EMSDK_VERSION
# Installs build dependencies.
RUN apt-get update && apt-get install -y bzip2 lzip ninja-build xz-utils

RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt install -y nodejs
RUN sed -i 's/NODE_JS .*/NODE_JS = "\/usr\/bin\/node"/' /emsdk/.emscripten

# Download dependency sources
WORKDIR /wasm
ARG ZLIB_VERSION
Expand Down Expand Up @@ -47,7 +43,6 @@ RUN cmake -DCMAKE_TOOLCHAIN_FILE=/emsdk/upstream/emscripten/cmake/Modules/Platfo
-DCMAKE_FIND_ROOT_PATH=/wasm \
-DUSE_GMP=OFF \
-DINSTALL_DOCUMENTATION=OFF \
-DNODE_JS_EXECUTABLE=/usr/bin/node \
-G Ninja ..
RUN ninja

Expand Down

0 comments on commit 05c6a7b

Please sign in to comment.