diff --git a/source/web/Dockerfile b/source/web/Dockerfile index b1ab0c6..96d8111 100644 --- a/source/web/Dockerfile +++ b/source/web/Dockerfile @@ -1,5 +1,8 @@ # Stage 1 - Restoring & Compiling -FROM microsoft/dotnet:2.1-sdk-alpine3.7 as builder +# Linux Alpine +# reference https://github.com/TrilonIO/aspnetcore-Vue-starter/blob/master/content/Dockerfile +# first created with dotnet new vue +FROM microsoft/dotnet:2.2-sdk-alpine3.8 as builder WORKDIR /source RUN apk add --update nodejs nodejs-npm COPY *.csproj . @@ -10,7 +13,7 @@ COPY . . RUN dotnet publish -c Release -o /app/ # Stage 2 - Creating Image for compiled app -FROM microsoft/dotnet:2.1.1-aspnetcore-runtime-alpine3.7 as baseimage +FROM microsoft/dotnet:2.2-aspnetcore-runtime-alpine3.8 as baseimage RUN apk add --update nodejs nodejs-npm WORKDIR /app COPY --from=builder /app .