Ajuste API a Release
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 6m24s
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 6m24s
This commit is contained in:
parent
80df3b2faa
commit
94a9bd9254
@ -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/"]
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user