add named final stage to target

This commit is contained in:
Collin M. Barrett 2019-04-29 12:56:32 -05:00
parent 7e55ed33bc
commit b74dcdd956
2 changed files with 2 additions and 2 deletions

View file

@ -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/

View file

@ -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 ./