diff --git a/templates/Angular2Spa/Dockerfile b/templates/Angular2Spa/Dockerfile index b382b9e..748edec 100644 --- a/templates/Angular2Spa/Dockerfile +++ b/templates/Angular2Spa/Dockerfile @@ -1,14 +1,12 @@ FROM microsoft/dotnet:latest +RUN apt-get update +RUN apt-get install -y build-essential nodejs nodejs-legacy + 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 b382b9e..748edec 100644 --- a/templates/KnockoutSpa/Dockerfile +++ b/templates/KnockoutSpa/Dockerfile @@ -1,14 +1,12 @@ FROM microsoft/dotnet:latest +RUN apt-get update +RUN apt-get install -y build-essential nodejs nodejs-legacy + 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 b382b9e..748edec 100644 --- a/templates/ReactReduxSpa/Dockerfile +++ b/templates/ReactReduxSpa/Dockerfile @@ -1,14 +1,12 @@ FROM microsoft/dotnet:latest +RUN apt-get update +RUN apt-get install -y build-essential nodejs nodejs-legacy + 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 b382b9e..748edec 100644 --- a/templates/ReactSpa/Dockerfile +++ b/templates/ReactSpa/Dockerfile @@ -1,14 +1,12 @@ FROM microsoft/dotnet:latest +RUN apt-get update +RUN apt-get install -y build-essential nodejs nodejs-legacy + 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"]