diff --git a/Dockerfile b/Dockerfile index c6b93a2..ce93ded 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,14 +13,9 @@ COPY ["KernelMemory.FileWatcher/KernelMemory.FileWatcher.csproj", "KernelMemory. RUN dotnet restore "./KernelMemory.FileWatcher/KernelMemory.FileWatcher.csproj" COPY . . WORKDIR "/src/KernelMemory.FileWatcher" -RUN dotnet build "./KernelMemory.FileWatcher.csproj" -c $BUILD_CONFIGURATION -o /app/build - -FROM build AS publish -ARG BUILD_CONFIGURATION=Release -WORKDIR "/src/KernelMemory.FileWatcher" -RUN dotnet publish "./KernelMemory.FileWatcher.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false +RUN dotnet publish "./KernelMemory.FileWatcher.csproj" -c $BUILD_CONFIGURATION -o /app/publish #/p:UseAppHost=false FROM base AS final WORKDIR /app -COPY --from=publish /app/publish . +COPY --from=build /app/publish . ENTRYPOINT ["dotnet", "KernelMemory.FileWatcher.dll"] \ No newline at end of file