mirror of https://github.com/dotnet/tye.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
605 B
14 lines
605 B
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 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: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"]
|