File tree 3 files changed +50
-0
lines changed
3 files changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ ** /.classpath
2
+ ** /.dockerignore
3
+ ** /.env
4
+ ** /.git
5
+ ** /.gitignore
6
+ ** /.project
7
+ ** /.settings
8
+ ** /.toolstarget
9
+ ** /.vs
10
+ ** /.vscode
11
+ ** /* . * proj.user
12
+ ** /* .dbmdl
13
+ ** /* .jfm
14
+ ** /azds.yaml
15
+ ** /bin
16
+ ** /charts
17
+ ** /docker-compose *
18
+ ** /Dockerfile *
19
+ ** /node_modules
20
+ ** /npm-debug.log
21
+ ** /obj
22
+ ** /secrets.dev.yaml
23
+ ** /values.dev.yaml
24
+ LICENSE
25
+ README.md
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<TargetFramework >netcoreapp3.1</TargetFramework >
5
+ <UserSecretsId >cfcaf7bb-815b-4e0e-b5d8-6345624b1f7f</UserSecretsId >
6
+ <DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
5
7
</PropertyGroup >
6
8
7
9
15
17
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
16
18
</PackageReference >
17
19
<PackageReference Include =" Microsoft.Extensions.Logging.Debug" Version =" 3.1.0" />
20
+ <PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.9.10" />
18
21
<PackageReference Include =" Microsoft.VisualStudio.Web.CodeGeneration.Design" Version =" 3.1.0" />
19
22
</ItemGroup >
20
23
Original file line number Diff line number Diff line change
1
+ # See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2
+
3
+ FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base
4
+ WORKDIR /app
5
+ EXPOSE 80
6
+ EXPOSE 443
7
+
8
+ FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
9
+ WORKDIR /src
10
+ COPY ["/AspNetRunBasic.csproj" , "AspNetRunBasic/" ]
11
+ RUN dotnet restore "AspNetRunBasic/AspNetRunBasic.csproj"
12
+ COPY . .
13
+ WORKDIR "/AspNetRunBasic"
14
+ RUN dotnet build "AspNetRunBasic.csproj" -c Release -o /app/build
15
+
16
+ FROM build AS publish
17
+ RUN dotnet publish "AspNetRunBasic.csproj" -c Release -o /app/publish
18
+
19
+ FROM base AS final
20
+ WORKDIR /app
21
+ COPY --from=publish /app/publish .
22
+ ENTRYPOINT ["dotnet" , "AspNetRunBasic.dll" ]
You can’t perform that action at this time.
0 commit comments