Skip to content

Commit

Permalink
Revert to the apt-based way of installing Node.js (#64)
Browse files Browse the repository at this point in the history
This effectively reverts [1]. [1] broke things in our local environments
as at least some of us use M1 Macs so hardcoded amd64 architecture won't do.

Fixes: [1] 827a87f ("Fix Node installation in the Dockerfile (#61)")
  • Loading branch information
jstasiak authored Jun 9, 2022
1 parent 465caf2 commit 9fa6066
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ RUN apt-get update && apt-get install -y \

RUN wget -O- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
RUN add-apt-repository "https://deb.nodesource.com/node_16.x buster main"
# wgetting a specific file instead of installing through apt ensures that we can install
# older versions of the package even when new ones are published (apt install ... only sees
# the latest one).
RUN wget https://deb.nodesource.com/node_16.x/pool/main/n/nodejs/nodejs_16.15.1-deb-1nodesource1_amd64.deb && \
dpkg -i nodejs*.deb && \
rm nodejs*.deb
RUN apt-get update && apt-get install -y \
nodejs=16.15.1-deb-1nodesource1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /lune-ts

0 comments on commit 9fa6066

Please sign in to comment.