forked from Azure-Samples/dotnetcore-docs-hello-world
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Start with the .NET SDK for building the app | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build | ||
# Work within a folder named `/source` | ||
WORKDIR /source | ||
|
||
# Copy everything in this project and build app | ||
COPY . ./dotnetcore-docs-hello-world/ | ||
WORKDIR /source/dotnetcore-docs-hello-world | ||
RUN dotnet publish -c release -o /app | ||
|
||
# final stage/image | ||
# We're using a tag that is explicitly a Windows container | ||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 | ||
WORKDIR /app | ||
COPY --from=build /app ./ | ||
|
||
# Start the app | ||
ENTRYPOINT ["dotnet", "dotnetcoresample.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
@page | ||
@model IndexModel | ||
@{ | ||
@{ | ||
ViewData["Title"] = "Home page"; | ||
} | ||
|
||
<div class="text-center"> | ||
<h1 class="display-4">Hello World from .Net 6</h1> | ||
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p> | ||
<hr /> | ||
<div>Host operating system: @Model.OSVersion</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters