Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
- FROM mcr.microsoft.com/azure-functions/dotnet:3.0 AS base
- WORKDIR /home/site/wwwroot
- EXPOSE 80
- FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
- WORKDIR /src
- COPY ["testproj.csproj", ""]
- RUN dotnet restore "./testproj.csproj"
- COPY . .
- WORKDIR "/src/."
- RUN dotnet build "testproj.csproj" -c Release -o /app/build
- FROM build AS publish
- RUN dotnet publish "testproj.csproj" -c Release -o /app/publish
- FROM base AS final
- WORKDIR /home/site/wwwroot
- COPY --from=publish /app/publish .
- ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
- AzureFunctionsJobHost__Logging__Console__IsEnabled=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement