From 9017e0e500b9883d0d2bb091f1228b724e672d62 Mon Sep 17 00:00:00 2001 From: alirehmani Date: Fri, 3 May 2024 22:47:45 +0500 Subject: [PATCH] update --- src/Managing.Api/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Managing.Api/Dockerfile b/src/Managing.Api/Dockerfile index 4e9d4b3..e21ce85 100644 --- a/src/Managing.Api/Dockerfile +++ b/src/Managing.Api/Dockerfile @@ -6,7 +6,7 @@ EXPOSE 443 # Use the official Microsoft .NET SDK image to build the code. FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build -WORKDIR /src +WORKDIR /app COPY ["./src/Managing.Api/Managing.Api.csproj", "Managing.Api/"] COPY ["./src/Managing.Bootstrap/Managing.Bootstrap.csproj", "Managing.Bootstrap/"] COPY ["./src/Managing.Infrastructure.Storage/Managing.Infrastructure.Storage.csproj", "Managing.Infrastructure.Storage/"] @@ -24,8 +24,8 @@ RUN dotnet restore "./Managing.Api/Managing.Api.csproj" COPY . . -WORKDIR "/src/Managing.Api" -RUN pwd +WORKDIR "/app/Managing.Api" + RUN dotnet build "./Managing.Api.csproj" -c Release -o /app/build # FROM build AS publish