-
Notifications
You must be signed in to change notification settings - Fork 442
/
Dockerfile
35 lines (24 loc) · 1.09 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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