Ajuste API a Release
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 6m24s

This commit is contained in:
Leandro Hernan Rojas 2025-02-01 12:55:14 -03:00
parent 80df3b2faa
commit 94a9bd9254
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ EXPOSE 8081
# Esta fase se usa para compilar el proyecto de servicio
#FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build
ARG BUILD_CONFIGURATION=Debug
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["phronCare.API/phronCare.API.csproj", "phronCare.API/"]
COPY ["Core/Core.csproj", "Core/"]

View File

@ -136,11 +136,11 @@ builder.Services.AddEndpointsApiExplorer();
var app = builder.Build();
//if (app.Environment.IsDevelopment())
//{
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
//}
}
app.UseCors("CORS");
app.UseAuthentication();