Files
Anthias/docker/nodejs-install.j2
Nico Miguelino f0f6497efc chore(docker): use APT nodejs for pi3 and pi4 (#2678)
NodeSource doesn't support armhf architecture (used by pi3/pi4),
so fall back to APT-provided nodejs/npm for those boards.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 23:10:11 -08:00

14 lines
338 B
Django/Jinja

{% if board in ['pi1', 'pi2', 'pi3', 'pi4'] %}
RUN apt-get update && \
apt-get -y install \
nodejs \
npm
{% else %}
RUN apt-get update && \
apt-get -y install \
curl \
ca-certificates && \
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get -y install nodejs
{% endif %}