From 0a3463031b622f7d9e5b6a426c979f5055e69c4d Mon Sep 17 00:00:00 2001 From: SteveSandersonMS Date: Wed, 27 Jul 2016 13:09:54 +0100 Subject: [PATCH] Add Node.js support in all the Docker containers --- templates/Angular2Spa/Dockerfile | 5 +++++ templates/KnockoutSpa/Dockerfile | 5 +++++ templates/ReactReduxSpa/Dockerfile | 5 +++++ templates/ReactSpa/Dockerfile | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/templates/Angular2Spa/Dockerfile b/templates/Angular2Spa/Dockerfile index 10eb41a..b382b9e 100644 --- a/templates/Angular2Spa/Dockerfile +++ b/templates/Angular2Spa/Dockerfile @@ -4,6 +4,11 @@ COPY . /app WORKDIR /app +# Add Node.js to the container. If you don't want to wait for this to install every +# time you rebuild your container, consider creating an image that has it preinstalled. +RUN apt-get update +RUN apt-get install -y build-essential nodejs nodejs-legacy + RUN ["dotnet", "restore"] RUN ["dotnet", "build"] diff --git a/templates/KnockoutSpa/Dockerfile b/templates/KnockoutSpa/Dockerfile index 10eb41a..b382b9e 100644 --- a/templates/KnockoutSpa/Dockerfile +++ b/templates/KnockoutSpa/Dockerfile @@ -4,6 +4,11 @@ COPY . /app WORKDIR /app +# Add Node.js to the container. If you don't want to wait for this to install every +# time you rebuild your container, consider creating an image that has it preinstalled. +RUN apt-get update +RUN apt-get install -y build-essential nodejs nodejs-legacy + RUN ["dotnet", "restore"] RUN ["dotnet", "build"] diff --git a/templates/ReactReduxSpa/Dockerfile b/templates/ReactReduxSpa/Dockerfile index 10eb41a..b382b9e 100644 --- a/templates/ReactReduxSpa/Dockerfile +++ b/templates/ReactReduxSpa/Dockerfile @@ -4,6 +4,11 @@ COPY . /app WORKDIR /app +# Add Node.js to the container. If you don't want to wait for this to install every +# time you rebuild your container, consider creating an image that has it preinstalled. +RUN apt-get update +RUN apt-get install -y build-essential nodejs nodejs-legacy + RUN ["dotnet", "restore"] RUN ["dotnet", "build"] diff --git a/templates/ReactSpa/Dockerfile b/templates/ReactSpa/Dockerfile index 10eb41a..b382b9e 100644 --- a/templates/ReactSpa/Dockerfile +++ b/templates/ReactSpa/Dockerfile @@ -4,6 +4,11 @@ COPY . /app WORKDIR /app +# Add Node.js to the container. If you don't want to wait for this to install every +# time you rebuild your container, consider creating an image that has it preinstalled. +RUN apt-get update +RUN apt-get install -y build-essential nodejs nodejs-legacy + RUN ["dotnet", "restore"] RUN ["dotnet", "build"]