Skip to content

Commit

Permalink
Install Node/NPM in docker dev environment
Browse files Browse the repository at this point in the history
We are working on replacing SASS compilation (and later JS bundling)
with webpack, which will require Node and NPM.  This change adds these
tools to the Docker-based development environment so everything can
be built there.
  • Loading branch information
lunkwill42 committed Mar 1, 2024
1 parent 127ce87 commit 0e0bfa7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ RUN apt-get update && \
locales \
python3-dbg gdb \
sudo python3-dev python3-pip python3-virtualenv build-essential supervisor \
debian-keyring debian-archive-keyring ca-certificates
debian-keyring debian-archive-keyring ca-certificates curl gpg

## Use deb.nodesource.com to fetch more modern versions of Node/NPM than Debian can provide
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg && \
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main' > /etc/apt/sources.list.d/nodesource.list && \
apt-get update && \
apt-get install -y nodejs

ARG TIMEZONE=Europe/Oslo
ARG LOCALE=en_US.UTF-8
Expand Down

0 comments on commit 0e0bfa7

Please sign in to comment.