Skip to content

Commit

Permalink
Merge pull request #2855 from lunkwill42/dev/node-in-docker
Browse files Browse the repository at this point in the history
Install Node/NPM in docker dev environment
  • Loading branch information
lunkwill42 authored Mar 7, 2024
2 parents f92920c + 950d514 commit 6e728fc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# be world-readable!
#
#
FROM debian:bullseye
FROM --platform=linux/amd64 debian:bullseye

#### Prepare the OS base setup ###

Expand All @@ -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 6e728fc

Please sign in to comment.