Guest User

Untitled

a guest
Jul 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. FROM microsoft/aspnetcore-build:2.0 AS build-env
  2. WORKDIR /app
  3.  
  4. # Copy csproj and restore as distinct layers
  5. COPY *.csproj ./
  6. RUN dotnet restore
  7.  
  8. # Copy everything else and build
  9. COPY . ./
  10. RUN dotnet publish -c Release -o out
  11.  
  12. # Build runtime image
  13. FROM microsoft/aspnetcore:2.0
  14. WORKDIR /app
  15. COPY --from=build-env /app/out .
  16. CMD [ "dotnet","dotnet_demo_webapi.dll" ]
Add Comment
Please, Sign In to add comment