Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim AS base
  2. WORKDIR /app
  3. EXPOSE 80
  4. EXPOSE 443
  5.  
  6. FROM microsoft/dotnet:2.2-sdk AS build
  7. WORKDIR /src
  8. COPY / /src/Services/MyApi/
  9. WORKDIR /src/Services/MyApi/MyApi.Api
  10. RUN dotnet restore MyApi.csproj -nowarn:msb3202,nu1503
  11.  
  12. FROM build AS publish
  13. RUN dotnet build MyApi.csproj --no-restore -c Release -o /app
  14.  
  15. FROM base AS final
  16. WORKDIR /app
  17. COPY --from=publish /app .
  18. ENTRYPOINT ["dotnet", "MyApi.dll"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement