Advertisement
Guest User

Untitled

a guest
Jun 6th, 2020
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
  2.  
  3. FROM mcr.microsoft.com/azure-functions/dotnet:3.0 AS base
  4. WORKDIR /home/site/wwwroot
  5. EXPOSE 80
  6.  
  7. FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
  8. WORKDIR /src
  9. COPY ["testproj.csproj", ""]
  10. RUN dotnet restore "./testproj.csproj"
  11. COPY . .
  12. WORKDIR "/src/."
  13. RUN dotnet build "testproj.csproj" -c Release -o /app/build
  14.  
  15. FROM build AS publish
  16. RUN dotnet publish "testproj.csproj" -c Release -o /app/publish
  17.  
  18. FROM base AS final
  19. WORKDIR /home/site/wwwroot
  20. COPY --from=publish /app/publish .
  21. ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
  22. AzureFunctionsJobHost__Logging__Console__IsEnabled=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement