Hardcode detection of the distribution name
MODIFY
repo2docker/buildpacks/base.py
repo2docker/buildpacks/base.py
@@ -44,7 +44,7 @@ RUN adduser --disabled-password \
WORKDIR ${HOME}
RUN wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
- DISTRO="$(lsb_release -s -c)" && \
+ DISTRO="bionic" && \
echo "deb https://deb.nodesource.com/node_10.x $DISTRO main" >> /etc/apt/sources.list.d/nodesource.list && \
echo "deb-src https://deb.nodesource.com/node_10.x $DISTRO main" >> /etc/apt/sources.list.d/nodesource.list

MODIFY
tests/base/node10/verify
tests/base/node10/verify
#!/bin/sh
set -e
+which node
node --version | grep v10
-npm --version | grep v6.2
+which npm
+npm --version | grep 6.2

Hardcode detection of the distribution name