Skip to content

Instantly share code, notes, and snippets.

@asizikov
Created July 10, 2020 11:47
Show Gist options
  • Save asizikov/7bbd14242e0a7ea198979746aa24d129 to your computer and use it in GitHub Desktop.
Save asizikov/7bbd14242e0a7ea198979746aa24d129 to your computer and use it in GitHub Desktop.
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS installer-env
WORKDIR /src
COPY . /src
RUN mkdir -p /home/site/wwwroot && \
dotnet publish DockerizedFunc.FunctionApp/*.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:3.0-appservice
#FROM mcr.microsoft.com/azure-functions/dotnet:3.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