mirror of https://github.com/ivanch/tcc.git
adicionando pasta para ASP.NET
This commit is contained in:
parent
2390f8fb8d
commit
6f6a77f897
|
@ -3,7 +3,7 @@
|
|||
namespace TCC.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[Route("")]
|
||||
[Route("status")]
|
||||
public class StatusController : ControllerBase
|
||||
{
|
||||
public StatusController() { }
|
|
@ -0,0 +1,20 @@
|
|||
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build-env
|
||||
WORKDIR /App
|
||||
|
||||
# Copy everything
|
||||
COPY * .
|
||||
|
||||
# Restore as distinct layers
|
||||
RUN dotnet restore
|
||||
|
||||
# Build a release
|
||||
RUN dotnet build -c Release -o out
|
||||
|
||||
# Build runtime image
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine
|
||||
|
||||
WORKDIR /App
|
||||
|
||||
COPY --from=build-env /App/out .
|
||||
|
||||
ENTRYPOINT ["dotnet", "TCC.APP.dll"]
|
|
@ -1,4 +1,3 @@
|
|||
using Microsoft.AspNetCore.Http.Features;
|
||||
using Microsoft.AspNetCore.Server.Kestrel.Core;
|
||||
using TCC.Services;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
"dotnetRunMessages": true,
|
||||
"launchBrowser": false,
|
||||
"launchUrl": "weatherforecast",
|
||||
"applicationUrl": "http://localhost:5100",
|
||||
"applicationUrl": "http://0.0.0.0:5100",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
|
@ -5,7 +5,7 @@
|
|||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>tcc_app</RootNamespace>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Trace",
|
||||
"Microsoft.AspNetCore": "Trace"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
Loading…
Reference in New Issue