From 1a21916270fb61664277bd41daa781ad3b5bc9cc Mon Sep 17 00:00:00 2001 From: Oumayma Boutaleb <105134003+oumaymaboutaleb@users.noreply.github.com> Date: Mon, 1 May 2023 20:06:31 +0100 Subject: [PATCH] Update Dockerfile --- src/ApiGateways/OcelotApiGw/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ApiGateways/OcelotApiGw/Dockerfile b/src/ApiGateways/OcelotApiGw/Dockerfile index b753338b..19b81f02 100644 --- a/src/ApiGateways/OcelotApiGw/Dockerfile +++ b/src/ApiGateways/OcelotApiGw/Dockerfile @@ -6,9 +6,9 @@ EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim AS build WORKDIR /src -COPY ["ApiGateways/OcelotApiGw/OcelotApiGw.csproj", "ApiGateways/OcelotApiGw/"] +COPY ["src/ApiGateways/OcelotApiGw/OcelotApiGw.csproj", "ApiGateways/OcelotApiGw/"] COPY ["BuildingBlocks/Common.Logging/Common.Logging.csproj", "BuildingBlocks/Common.Logging/"] -RUN dotnet restore "ApiGateways/OcelotApiGw/OcelotApiGw.csproj" +RUN dotnet restore "src/ApiGateways/OcelotApiGw/OcelotApiGw.csproj" COPY . . WORKDIR "/src/ApiGateways/OcelotApiGw" RUN dotnet build "OcelotApiGw.csproj" -c Release -o /app/build @@ -19,4 +19,4 @@ RUN dotnet publish "OcelotApiGw.csproj" -c Release -o /app/publish FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "OcelotApiGw.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "OcelotApiGw.dll"]