From b74dcdd956fbb6b548012a05b4d8b638beb2b718 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Mon, 29 Apr 2019 12:56:32 -0500 Subject: [PATCH] add named final stage to target --- src/FilterLists.Api/Dockerfile | 2 +- src/FilterLists.Web/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FilterLists.Api/Dockerfile b/src/FilterLists.Api/Dockerfile index 358e56765..6dd3ed03e 100644 --- a/src/FilterLists.Api/Dockerfile +++ b/src/FilterLists.Api/Dockerfile @@ -46,6 +46,6 @@ RUN dotnet build -c Release --no-restore ENTRYPOINT ["dotnet", "test"] # run -FROM runtime +FROM runtime as final COPY --from=build /src/FilterLists.Api/out ./ COPY data/. ./data/ diff --git a/src/FilterLists.Web/Dockerfile b/src/FilterLists.Web/Dockerfile index 9cd50da75..96ae63c72 100644 --- a/src/FilterLists.Web/Dockerfile +++ b/src/FilterLists.Web/Dockerfile @@ -24,6 +24,6 @@ COPY src/FilterLists.Web/. ./ RUN dotnet publish -c Release -o out --no-restore # run -FROM runtime +FROM runtime as final COPY --from=build /src/FilterLists.Web/out ./ \ No newline at end of file