diff --git a/Dockerfile b/Dockerfile index fda7ac8..96fe292 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,21 @@ FROM ghcr.io/r-wasm/webr:main # Upstream installs nodejs to build webr, but it conflicts with libv8-dev -RUN rm /etc/apt/sources.list.d/nodesource.list && \ - apt-get update && \ - apt-get install -y lsb-release && \ - apt-get remove -y nodejs && \ - apt-get autoremove --purge && \ - apt-get clean all +#RUN rm /etc/apt/sources.list.d/nodesource.list && \ +# apt-get update && \ +# apt-get install -y lsb-release && \ +# apt-get remove -y nodejs && \ +# apt-get autoremove --purge && \ +# apt-get clean all + + +# Alternative workaround for libv8-dev conflicting with nodejs (see above) +RUN apt-get update && \ + apt-get install -y equivs lsb-release &&\ + equivs-control libv8-dev && \ + sed -i 's/Package:.*/Package: libv8-dev/' libv8-dev && \ + equivs-build libv8-dev && \ + dpkg -i libv8-dev_1.0_all.deb # Setup Node, Emscripten & webR ENV PATH /opt/emsdk:/opt/emsdk/upstream/emscripten:$PATH