azure-functions-host/Dockerfile

36 строки
1.1 KiB
Docker

FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS installer-env
ENV PublishWithAspNetCoreTargetManifest false
COPY . /workingdir
RUN cd workingdir && \
dotnet publish src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj --output /azure-functions-host
# Runtime image
FROM mcr.microsoft.com/azure-functions/python:3.0
RUN apt-get update && \
apt-get install -y gnupg && \
curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
apt-get update && \
apt-get install -y nodejs dotnet-sdk-3.1
# Install the dependencies for Visual Studio Remote Debugger
RUN apt-get update && apt-get install -y --no-install-recommends unzip procps
# Install Visual Studio Remote Debugger
RUN curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg
COPY --from=installer-env ["/azure-functions-host", "/azure-functions-host"]
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
HOME=/home \
ASPNETCORE_URLS=http://+:80 \
AZURE_FUNCTIONS_ENVIRONMENT=Development \
FUNCTIONS_WORKER_RUNTIME=
EXPOSE 80
CMD dotnet /azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost.dll