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"]