Add nodejs stuff only for amd64

This commit is contained in:
Alexandre Aubin 2018-04-26 18:36:13 +02:00
parent 8f731112b8
commit 590e7f0334

View file

@ -29,11 +29,14 @@ function build_image()
chroot $CHROOT apt-get update
chroot $CHROOT apt-get dist-upgrade
chroot $CHROOT apt-get install -y build-essential debhelper cmake wget
chroot $CHROOT apt-get install -y build-essential debhelper cmake wget devscripts
chroot $CHROOT wget -q -O /tmp/setup_nodejs https://deb.nodesource.com/setup_4.x
chroot $CHROOT bash /tmp/setup_nodejs
chroot $CHROOT apt-get install -y nodejs
if [ "$ARCH" == "amd64" ];
then
chroot $CHROOT wget -q -O /tmp/setup_nodejs https://deb.nodesource.com/setup_4.x
chroot $CHROOT bash /tmp/setup_nodejs
chroot $CHROOT apt-get install -y nodejs
fi
chroot $CHROOT apt-get clean