File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM microsoft/dotnet:2.1-sdk AS installer-env
2
+
3
+ ENV PublishWithAspNetCoreTargetManifest false
4
+
5
+ COPY . /workingdir
6
+
7
+ RUN cd workingdir && \
8
+ dotnet build WebJobs.Script.sln && \
9
+ dotnet publish src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj --output /azure-functions-host
10
+
11
+ # Runtime image
12
+ FROM microsoft/dotnet:2.1-aspnetcore-runtime
13
+
14
+ RUN apt-get update && \
15
+ apt-get install -y gnupg && \
16
+ curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
17
+ apt-get update && \
18
+ apt-get install -y nodejs
19
+
20
+ COPY --from=installer-env ["/azure-functions-host" , "/azure-functions-host" ]
21
+ COPY --from=installer-env ["/workingdir/sample" , "/home/site/wwwroot" ]
22
+
23
+ ENV AzureWebJobsScriptRoot=/home/site/wwwroot
24
+ ENV HOME=/home
25
+ ENV ASPNETCORE_URLS=http://+:80
26
+ EXPOSE 80
27
+
28
+ CMD dotnet /azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost.dll
You can’t perform that action at this time.
0 commit comments