diff --git a/.dockerignore b/.dockerignore index df2e0fe..949f2c3 100644 --- a/.dockerignore +++ b/.dockerignore @@ -6,4 +6,5 @@ .vscode */bin */obj -**/.toolstarget \ No newline at end of file +**/.toolstarget +*/*/node_modules \ No newline at end of file diff --git a/AngularWithAspNetCore/Dockerfile b/AngularWithAspNetCore/Dockerfile index 252f008..a5f1706 100644 --- a/AngularWithAspNetCore/Dockerfile +++ b/AngularWithAspNetCore/Dockerfile @@ -11,6 +11,10 @@ COPY . . WORKDIR "/src/AngularWithAspNetCore" RUN dotnet build "AngularWithAspNetCore.csproj" -c Release -o /app +RUN apt-get -qq update && apt-get install build-essential -y && apt-get install -my wget gnupg && apt-get -qq -y install bzip2 +RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - +RUN apt-get install -y nodejs + FROM build AS publish RUN dotnet publish "AngularWithAspNetCore.csproj" -c Release -o /app