Compare commits
No commits in common. 'd19f66e53249f093796a15ec4b2c7d47e45c0ea3' and 'ba0086a46de655fb19e7f39aa05163580b1216bf' have entirely different histories.
d19f66e532
...
ba0086a46d
@ -0,0 +1,22 @@
|
|||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
||||||
|
WORKDIR /app
|
||||||
|
EXPOSE 80
|
||||||
|
EXPOSE 443
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||||
|
WORKDIR /src
|
||||||
|
COPY ["server/ApiLeapHit/ApiLeapHit.csproj", "ApiLeapHit/"]
|
||||||
|
COPY ["server/DTO/DTO.csproj", "DTO/"]
|
||||||
|
COPY ["server/DataBase/DataBase.csproj", "DataBase/"]
|
||||||
|
RUN dotnet restore "ApiLeapHit/ApiLeapHit.csproj"
|
||||||
|
COPY . .
|
||||||
|
WORKDIR "/src/ApiLeapHit"
|
||||||
|
RUN dotnet build "ApiLeapHit.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
|
FROM build AS publish
|
||||||
|
RUN dotnet publish "ApiLeapHit.csproj" -c Release -o /app/publish
|
||||||
|
|
||||||
|
FROM base AS final
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=publish /app/publish .
|
||||||
|
ENTRYPOINT ["dotnet", "ApiLeapHit.dll"]
|
@ -1,21 +1,18 @@
|
|||||||
{
|
{
|
||||||
"ConnectionStrings": {
|
"Logging": {
|
||||||
"AppDb": "Data Source=pong.db"
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft": "Warning",
|
||||||
|
"Microsoft.Hosting.Lifetime": "Information"
|
||||||
},
|
},
|
||||||
"Logging": {
|
"Console": {
|
||||||
"LogLevel": {
|
"IncludeScopes": true,
|
||||||
"Default": "Information",
|
"LogLevel": {
|
||||||
"Microsoft": "Warning",
|
"Default": "Debug",
|
||||||
"Microsoft.Hosting.Lifetime": "Information"
|
"System": "Information",
|
||||||
},
|
"Microsoft": "Information"
|
||||||
"Console": {
|
}
|
||||||
"IncludeScopes": true,
|
}
|
||||||
"LogLevel": {
|
},
|
||||||
"Default": "Debug",
|
"AllowedHosts": "*"
|
||||||
"System": "Information",
|
|
||||||
"Microsoft": "Information"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"AllowedHosts": "*"
|
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Loading…
Reference in new issue