Skip to content
Permalink
Browse files

add docker from vs 2019 (16.1.6)

  • Loading branch information...
vfabing committed Jul 17, 2019
1 parent 486489a commit 37f78d741745a2ec59eedab8c02838185ab0c40e
Showing with 59 additions and 3 deletions.
  1. +20 −0 .dockerignore
  2. +20 −0 Dockerfile
  3. +15 −3 Properties/launchSettings.json
  4. +4 −0 docker-aspnetcore-react.csproj
@@ -0,0 +1,20 @@
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.vs
**/.vscode
**/*.*proj.user
**/azds.yaml
**/charts
**/bin
**/obj
**/Dockerfile
**/Dockerfile.develop
**/docker-compose.yml
**/docker-compose.*.yml
**/*.dbmdl
**/*.jfm
**/secrets.dev.yaml
**/values.dev.yaml
**/.toolstarget
@@ -0,0 +1,20 @@
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443

FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build
WORKDIR /src
COPY ["docker-aspnetcore-react.csproj", ""]
RUN dotnet restore "docker-aspnetcore-react.csproj"
COPY . .
WORKDIR "/src/"
RUN dotnet build "docker-aspnetcore-react.csproj" -c Release -o /app

FROM build AS publish
RUN dotnet publish "docker-aspnetcore-react.csproj" -c Release -o /app

FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "docker-aspnetcore-react.dll"]
@@ -1,4 +1,4 @@
{
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
@@ -18,10 +18,22 @@
"docker_aspnetcore_react": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
},
"Docker": {
"commandName": "Docker",
"launchBrowser": true,
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}",
"environmentVariables": {
"ASPNETCORE_URLS": "https://+:443;http://+:80",
"ASPNETCORE_HTTPS_PORT": "44355"
},
"httpPort": 38633,
"useSSL": true,
"sslPort": 44355
}
}
}
@@ -8,11 +8,15 @@
<SpaRoot>ClientApp\</SpaRoot>
<DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
<RootNamespace>docker_aspnetcore_react</RootNamespace>
<UserSecretsId>2f394d1e-ab29-498d-9e03-99155f693e84</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerfileContext>.</DockerfileContext>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.7.9" />
</ItemGroup>

<ItemGroup>

0 comments on commit 37f78d7

Please sign in to comment.
You can’t perform that action at this time.