From 4d380c94facc5dd89bfcacc6023c06659c549284 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sun, 28 Apr 2019 16:59:31 -0500 Subject: [PATCH] Revert "simplify web dockerfile" This reverts commit d773c99a3bcc2b360642c5d6bc3c89e78e0f2a53. --- src/FilterLists.Web/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/FilterLists.Web/Dockerfile b/src/FilterLists.Web/Dockerfile index 3b06185e9..1fe10fabe 100644 --- a/src/FilterLists.Web/Dockerfile +++ b/src/FilterLists.Web/Dockerfile @@ -12,13 +12,19 @@ FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine AS build RUN apk add --update nodejs nodejs-npm # restore +COPY FilterLists.Web.sln ./ +WORKDIR /src/FilterLists.Web/ COPY src/FilterLists.Web/FilterLists.Web.csproj ./ +WORKDIR / RUN dotnet restore # publish +WORKDIR /src/FilterLists.Web/ COPY src/FilterLists.Web/. ./ RUN dotnet publish -c Release -o out --no-restore # run FROM runtime -COPY --from=build /out ./ +COPY --from=build /src/FilterLists.Web/out ./ + +# test build trigger