This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM microsoft/dotnet:2.2-sdk AS installer-env | |
COPY . /src/dotnet-function-app | |
RUN cd /src/dotnet-function-app && \ | |
mkdir -p /home/site/wwwroot && \ | |
dotnet publish *.csproj --output /home/site/wwwroot | |
# To enable ssh & remote debugging on app service change the base image to the one below | |
# FROM mcr.microsoft.com/azure-functions/dotnet:2.0-appservice | |
FROM mcr.microsoft.com/azure-functions/dotnet:2.0 | |
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \ | |
AzureFunctionsJobHost__Logging__Console__IsEnabled=true | |
COPY --from=installer-env ["/home/site/wwwroot", "/home/site/wwwroot"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment