Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install dummy v8 #1

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down