From 94a9bd925418e8198d630455c24db2670e6e417d Mon Sep 17 00:00:00 2001 From: Leandro Hernan Rojas Date: Sat, 1 Feb 2025 12:55:14 -0300 Subject: [PATCH] Ajuste API a Release --- phronCare.API/Dockerfile | 2 +- phronCare.API/Program.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/phronCare.API/Dockerfile b/phronCare.API/Dockerfile index 9fa5b95..4dbddae 100644 --- a/phronCare.API/Dockerfile +++ b/phronCare.API/Dockerfile @@ -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/"] diff --git a/phronCare.API/Program.cs b/phronCare.API/Program.cs index e30ef8b..2bd1793 100644 --- a/phronCare.API/Program.cs +++ b/phronCare.API/Program.cs @@ -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();