Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganized with solution file, added Dockerfile
- Loading branch information
DS063137
committed
Aug 12, 2018
1 parent
7280b50
commit 0d6a271
Showing
51 changed files
with
67 additions
and
7 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,19 +1,18 @@ | ||
FROM microsoft/dotnet:2.1-sdk AS build | ||
WORKDIR /app | ||
|
||
# copy csproj and restore as distinct layers | ||
COPY *.sln . | ||
COPY *.csproj ./aspnetapp/ | ||
COPY angularapp/*.csproj ./angularapp/ | ||
RUN dotnet restore | ||
|
||
# copy everything else and build app | ||
COPY ./ ./aspnetapp/ | ||
WORKDIR /app/aspnetapp | ||
COPY angularapp/ ./angularapp/ | ||
WORKDIR /app/angularapp | ||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && apt-get install -y nodejs | ||
RUN dotnet publish -c Release -o out | ||
|
||
|
||
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS runtime | ||
WORKDIR /app | ||
COPY --from=build /app/aspnetapp/out ./ | ||
COPY --from=build /app/angularapp/out ./ | ||
ENTRYPOINT ["dotnet", "dotnet-angular.dll"] | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,27 @@ | ||
{ | ||
"iisSettings": { | ||
"windowsAuthentication": false, | ||
"anonymousAuthentication": true, | ||
"iisExpress": { | ||
"applicationUrl": "http://localhost:2958", | ||
"sslPort": 44372 | ||
} | ||
}, | ||
"profiles": { | ||
"IIS Express": { | ||
"commandName": "IISExpress", | ||
"launchBrowser": true, | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
}, | ||
"dotnet_angular": { | ||
"commandName": "Project", | ||
"launchBrowser": true, | ||
"applicationUrl": "https://localhost:5001;http://localhost:5000", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,34 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.26124.0 | ||
MinimumVisualStudioVersion = 15.0.26124.0 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnet-angular", "angularapp\dotnet-angular.csproj", "{D6A28F39-6D71-4A39-B711-0DE4F6E42827}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
Release|Any CPU = Release|Any CPU | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{D6A28F39-6D71-4A39-B711-0DE4F6E42827}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{D6A28F39-6D71-4A39-B711-0DE4F6E42827}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{D6A28F39-6D71-4A39-B711-0DE4F6E42827}.Debug|x64.ActiveCfg = Debug|Any CPU | ||
{D6A28F39-6D71-4A39-B711-0DE4F6E42827}.Debug|x64.Build.0 = Debug|Any CPU | ||
{D6A28F39-6D71-4A39-B711-0DE4F6E42827}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{D6A28F39-6D71-4A39-B711-0DE4F6E42827}.Debug|x86.Build.0 = Debug|Any CPU | ||
{D6A28F39-6D71-4A39-B711-0DE4F6E42827}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{D6A28F39-6D71-4A39-B711-0DE4F6E42827}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{D6A28F39-6D71-4A39-B711-0DE4F6E42827}.Release|x64.ActiveCfg = Release|Any CPU | ||
{D6A28F39-6D71-4A39-B711-0DE4F6E42827}.Release|x64.Build.0 = Release|Any CPU | ||
{D6A28F39-6D71-4A39-B711-0DE4F6E42827}.Release|x86.ActiveCfg = Release|Any CPU | ||
{D6A28F39-6D71-4A39-B711-0DE4F6E42827}.Release|x86.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
EndGlobal |