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"]