From d773c99a3bcc2b360642c5d6bc3c89e78e0f2a53 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sun, 28 Apr 2019 16:48:48 -0500 Subject: [PATCH] simplify web dockerfile --- src/FilterLists.Web/Dockerfile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/FilterLists.Web/Dockerfile b/src/FilterLists.Web/Dockerfile index 1fe10fabe..3b06185e9 100644 --- a/src/FilterLists.Web/Dockerfile +++ b/src/FilterLists.Web/Dockerfile @@ -12,19 +12,13 @@ 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 /src/FilterLists.Web/out ./ - -# test build trigger +COPY --from=build /out ./