diff --git a/microservices/AuthApi/Dockerfile b/microservices/AuthApi/Dockerfile index d766fe4..1016220 100644 --- a/microservices/AuthApi/Dockerfile +++ b/microservices/AuthApi/Dockerfile @@ -2,12 +2,12 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src # Copy project file first to take advantage of Docker layer caching -COPY ["AuthApi.csproj", "./"] -RUN dotnet restore "AuthApi.csproj" +COPY ["AuthApi.csproj", "./"] +RUN dotnet restore "AuthApi.csproj" --disable-parallel # Copy the remaining source and publish -COPY . . -RUN dotnet publish "AuthApi.csproj" -c Release -o /app/publish /p:UseAppHost=false +COPY . . +RUN dotnet publish "AuthApi.csproj" -c Release -o /app/publish /p:UseAppHost=false --no-restore FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final WORKDIR /app