From a13b7331919152edd1aa0463fe1d712b6133de6c Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Tue, 4 Jun 2019 20:36:39 -0400 Subject: [PATCH] Update node in sdist builder image --- installer/roles/image_build/files/Dockerfile.sdist | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/installer/roles/image_build/files/Dockerfile.sdist b/installer/roles/image_build/files/Dockerfile.sdist index f946c9168d..8d4fbf29aa 100644 --- a/installer/roles/image_build/files/Dockerfile.sdist +++ b/installer/roles/image_build/files/Dockerfile.sdist @@ -7,11 +7,15 @@ RUN yum install -y bzip2 \ gettext \ git \ make \ + nodejs \ python36-setuptools -RUN curl --silent --location https://rpm.nodesource.com/setup_8.x | bash - -RUN yum install -y nodejs -RUN npm set progress=false +# Use the distro provided npm to bootstrap our required version of node +RUN npm install -g n +RUN n 10.15.0 +RUN yum remove -y nodejs + +ENV PATH=/usr/local/n/versions/node/10.15.0/bin:$PATH WORKDIR "/awx"