From a80d26e754ac1d20f1a27e69eccedeee0be09b43 Mon Sep 17 00:00:00 2001 From: enonibobble Date: Fri, 27 Dec 2024 21:44:22 +0000 Subject: [PATCH 1/2] Update RssTimerService.cs --- Asahi/Modules/RssAtomFeed/RssTimerService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Asahi/Modules/RssAtomFeed/RssTimerService.cs b/Asahi/Modules/RssAtomFeed/RssTimerService.cs index 903a408..2c8fab3 100644 --- a/Asahi/Modules/RssAtomFeed/RssTimerService.cs +++ b/Asahi/Modules/RssAtomFeed/RssTimerService.cs @@ -206,7 +206,7 @@ public async Task PollFeeds() } } - foreach (var message in messages.Take(10)) + foreach (var message in messages.Take(10).Reverse()) { if (webhookClient != null) { From f26f5ffd3828441804ed7887a2c4bcc9b694a5d3 Mon Sep 17 00:00:00 2001 From: enonibobble Date: Fri, 27 Dec 2024 22:10:47 +0000 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 36aa5ed..eb2ac0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0 as build-env +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0 AS build-env WORKDIR /source @@ -17,7 +17,7 @@ RUN set -xe; \ dotnet publish Asahi/ -c Release -a $TARGETARCH -o /app; \ chmod +x /app/Asahi -FROM mcr.microsoft.com/dotnet/runtime:9.0 as runtime +FROM mcr.microsoft.com/dotnet/runtime:9.0 AS runtime WORKDIR /app @@ -25,6 +25,6 @@ COPY --from=build-env /app . VOLUME [ "/data" ] -ENV BOT_CONFIG_LOCATION /data/botconfig.yaml +ENV BOT_CONFIG_LOCATION="/data/botconfig.yaml" -CMD dotnet Asahi.dll +CMD [ "dotnet", "Asahi.dll" ]