forked from dotnet/dotnet-docker
-
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.
[WIP] Updates based on review of docs (dotnet#508)
* Updates based on review of docs * Add instructions for Windows Server 2016 and ACI * Update Windows support * Remove CliReferenceTool references * Update ASP.NET Core sample * Update samples per review] * Update ARM32 and Alpine samples to nightly * Switch to aspnetcore-runtime image * Switch most Dockerfiles from dotnet-nightly to dotnet * Simplify ARM32 self-contained Dockerfile * Add latest dockerfile * Update FROM statement * Update FROM statement for runtime * Update ARM32 instructions for ASP.NET Core * Update approach for .latest concept * Restore only for app project * Update text for 'preview' Dockerfiles * Update per feedback on dotnet reference link * Update ARM32 Dockerfile links in DH README * Add links between ARM32 topics * Add usage samples to ARM32 docs * Update Dockerfile location * Update per feedback * Remove target manifest property
- Loading branch information
1 parent
dc0f2db
commit 928292b
Showing
24 changed files
with
249 additions
and
149 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Build output | ||
[Bb]in/ | ||
[Oo]bj/ | ||
out/ | ||
[Oo]ut/ | ||
|
||
# cache for misc downloads | ||
artifacts/ | ||
|
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
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
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
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 @@ | ||
FROM microsoft/dotnet:2.1-sdk-alpine AS build | ||
WORKDIR /app | ||
|
||
# copy csproj and restore as distinct layers | ||
COPY *.sln . | ||
COPY aspnetapp/*.csproj ./aspnetapp/ | ||
RUN dotnet restore | ||
|
||
# copy everything else and build app | ||
COPY aspnetapp/. ./aspnetapp/ | ||
WORKDIR /app/aspnetapp | ||
RUN dotnet publish -c release -o out | ||
|
||
|
||
FROM microsoft/dotnet:2.1-aspnetcore-runtime-alpine AS runtime | ||
WORKDIR /app | ||
COPY --from=build /app/aspnetapp/out ./ | ||
ENTRYPOINT ["dotnet", "aspnetapp.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
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 @@ | ||
FROM microsoft/dotnet-nightly:2.1-sdk AS build | ||
WORKDIR /app | ||
|
||
# copy csproj and restore as distinct layers | ||
COPY *.sln . | ||
COPY aspnetapp/*.csproj ./aspnetapp/ | ||
RUN dotnet restore | ||
|
||
# copy everything else and build app | ||
COPY aspnetapp/. ./aspnetapp/ | ||
WORKDIR /app/aspnetapp | ||
RUN dotnet publish -c release -o out | ||
|
||
|
||
FROM microsoft/dotnet-nightly:2.1-aspnetcore-runtime AS runtime | ||
WORKDIR /app | ||
COPY --from=build /app/aspnetapp/out ./ | ||
ENTRYPOINT ["dotnet", "aspnetapp.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
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
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
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
Oops, something went wrong.