SHARE
TWEET

Untitled

a guest May 23rd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM mcr.microsoft.com/dotnet/core/sdk:3.0.100-preview5 AS build-env
  2. WORKDIR /app
  3.  
  4. # Copiar csproj e restaurar dependencias
  5. COPY *.csproj ./
  6. RUN dotnet restore
  7.  
  8. RUN pwsh -Command Write-Host "Teste: Gerando uma nova imagem Docker e testando o PowerShell Core"
  9.  
  10. # Build da aplicacao
  11. COPY . ./
  12. RUN dotnet publish -c Release -o out
  13.  
  14. # Build da imagem
  15. FROM mcr.microsoft.com/dotnet/core/aspnet:3.0.0-preview5
  16. WORKDIR /app
  17. COPY --from=build-env /app/out .
  18. ENTRYPOINT ["dotnet", "APIContagem.dll"]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top