Skip to content

Commit b6515f5

Browse files
authored
Update appsettings.json and Dockerfile (#31)
1 parent 7e1e6f1 commit b6515f5

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine AS build-env
1+
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build-env
22
WORKDIR src
33

44
COPY . .
55
RUN dotnet restore
66
RUN dotnet publish -c Release -o out
77

8-
FROM mcr.microsoft.com/dotnet/aspnet:7.0-alpine
8+
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
99
COPY --from=build-env /src/out .
1010
ENTRYPOINT ["dotnet", "./Api.dll"]

src/Api/appsettings.json

+3-11
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,18 @@
66
"Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware": "None"
77
}
88
},
9-
109
"AllowedHosts": "*",
11-
"Kestrel": {
12-
"EndPoints": {
13-
"Http": {
14-
"Url": "http://+:22001"
15-
}
16-
}
17-
},
18-
1910
"MongoDb": {
2011
"DatabaseName": "trumpee",
2112
"ConnectionString": "mongodb://root:password@localhost:23001/"
2213
},
2314
"MassTransit": {
2415
"Transport": {
25-
"Host": "localhost",
16+
"Host": "127.0.0.1",
2617
"VHost": "/",
2718
"Username": "guest",
28-
"Password": "guest"
19+
"Password": "guest",
20+
"Port": 23501
2921
}
3022
}
3123
}

0 commit comments

Comments
 (0)