mirror of
https://github.com/Screenly/Anthias.git
synced 2026-04-17 13:09:38 -04:00
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>
14 lines
338 B
Django/Jinja
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 %}
|