Skip to content

Commit

Permalink
Reorganized with solution file, added Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
DS063137 committed Aug 12, 2018
1 parent 7280b50 commit 0d6a271
Show file tree
Hide file tree
Showing 51 changed files with 67 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Dockerfile
@@ -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.
27 changes: 27 additions & 0 deletions angularapp/Properties/launchSettings.json
@@ -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.
34 changes: 34 additions & 0 deletions dotnet-angular.sln
@@ -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

0 comments on commit 0d6a271

Please sign in to comment.