Skip to content

Commit

Permalink
Use default nodejs in docker image (#421)
Browse files Browse the repository at this point in the history
* Use default nodejs in docker image
  • Loading branch information
jeroen authored Apr 30, 2024
1 parent 3f0496b commit ebe6dca
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,8 @@ RUN mkdir /opt/fake_rust/ && \

# Step 2: Do the necessary setups
FROM webr as scratch
# Install node 18
RUN mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | \
gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] \
https://deb.nodesource.com/node_18.x nodistro main" | \
tee /etc/apt/sources.list.d/nodesource.list && \
apt-get update && \
# Install nodejs
RUN apt-get update && \
apt-get install nodejs -y

# Install Rust; these lines are based on the official Rust docker image:
Expand Down

0 comments on commit ebe6dca

Please sign in to comment.