From 0fd40337a7c6766fe18e8d1f4c02f95780aeba7d Mon Sep 17 00:00:00 2001 From: Kevin Logan Date: Wed, 8 May 2019 07:18:16 -0500 Subject: [PATCH] docker file for web works --- source/web/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 .