File tree 6 files changed +87
-7
lines changed
6 files changed +87
-7
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 >net5.0</TargetFramework >
5
+ <UserSecretsId >e8ca6096-a03b-41dd-9109-8344940c76af</UserSecretsId >
6
+ <DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
5
7
</PropertyGroup >
6
8
7
9
<ItemGroup >
8
10
<PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 3.1.9" >
9
11
<PrivateAssets >all</PrivateAssets >
10
12
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
11
13
</PackageReference >
14
+ <PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.10.9" />
12
15
<PackageReference Include =" Swashbuckle.AspNetCore.SwaggerGen" Version =" 5.6.3" />
13
16
<PackageReference Include =" Swashbuckle.AspNetCore.SwaggerUI" Version =" 5.6.3" />
14
17
</ItemGroup >
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/aspnet:5.0-buster-slim AS base
4
+ WORKDIR /app
5
+ EXPOSE 80
6
+
7
+ FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim AS build
8
+ WORKDIR /src
9
+ COPY ["BasicClean.Api/BasicClean.Api.csproj" , "BasicClean.Api/" ]
10
+ COPY ["BasicClean.Infrastructure/BasicClean.Infrastructure.csproj" , "BasicClean.Infrastructure/" ]
11
+ COPY ["BasicClean.Core/BasicClean.Core.csproj" , "BasicClean.Core/" ]
12
+ RUN dotnet restore "BasicClean.Api/BasicClean.Api.csproj"
13
+ COPY . .
14
+ WORKDIR "/src/BasicClean.Api"
15
+ RUN dotnet build "BasicClean.Api.csproj" -c Release -o /app/build
16
+
17
+ FROM build AS publish
18
+ RUN dotnet publish "BasicClean.Api.csproj" -c Release -o /app/publish
19
+
20
+ FROM base AS final
21
+ WORKDIR /app
22
+ COPY --from=publish /app/publish .
23
+ ENTRYPOINT ["dotnet" , "BasicClean.Api.dll" ]
Original file line number Diff line number Diff line change 1
- {
1
+ {
2
2
"iisSettings" : {
3
- "windowsAuthentication" : false ,
4
- "anonymousAuthentication" : true ,
3
+ "windowsAuthentication" : false ,
4
+ "anonymousAuthentication" : true ,
5
5
"iisExpress" : {
6
6
"applicationUrl" : " http://localhost:61500" ,
7
7
"sslPort" : 44328
18
18
"BasicClean.Api" : {
19
19
"commandName" : " Project" ,
20
20
"launchBrowser" : true ,
21
- "applicationUrl" : " https://localhost:5001;http://localhost:5000" ,
22
21
"environmentVariables" : {
23
22
"ASPNETCORE_ENVIRONMENT" : " Development"
24
- }
23
+ },
24
+ "applicationUrl" : " https://localhost:5001;http://localhost:5000"
25
+ },
26
+ "Docker" : {
27
+ "commandName" : " Docker" ,
28
+ "launchBrowser" : true ,
29
+ "launchUrl" : " {Scheme}://{ServiceHost}:{ServicePort}" ,
30
+ "publishAllPorts" : true ,
31
+ "useSSL" : true
25
32
}
26
33
}
27
- }
34
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"ConnectionStrings" : {
3
- "TodoDb" : " Data Source=.; Connect Timeout=180; Initial Catalog=TodoDb;uid= sa;pwd =Asd123..;MultipleActiveResultSets=True "
3
+ "TodoDb" : " Server=tododb;Database=TodoDb;User Id= sa;Password =Asd123.."
4
4
},
5
5
"Logging" : {
6
6
"LogLevel" : {
Original file line number Diff line number Diff line change
1
+ version : ' 3.9'
2
+
3
+ services :
4
+ tododb :
5
+ image : mcr.microsoft.com/mssql/server
6
+ container_name : tododb
7
+ ports :
8
+ - " 1433:1433"
9
+ environment :
10
+ SA_PASSWORD : " Asd123.."
11
+ ACCEPT_EULA : " Y"
12
+ todo.api :
13
+ image : ${DOCKER_REGISTERY-}todoapi
14
+ depends_on :
15
+ - tododb
16
+ build :
17
+ context : .
18
+ dockerfile : BasicClean.Api/Dockerfile
19
+ ports :
20
+ - " 8090:80"
21
+
22
+
You can’t perform that action at this time.
0 commit comments