From 492d47a86367c66432028033cef6edec0cb3541d Mon Sep 17 00:00:00 2001 From: Toutsu Date: Thu, 21 May 2026 14:40:45 +0300 Subject: [PATCH] fix(discord): add wget to Dockerfile for healthcheck Issue #32 --- src/GmRelay.DiscordBot/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/GmRelay.DiscordBot/Dockerfile b/src/GmRelay.DiscordBot/Dockerfile index d075a80..a8589ea 100644 --- a/src/GmRelay.DiscordBot/Dockerfile +++ b/src/GmRelay.DiscordBot/Dockerfile @@ -15,6 +15,11 @@ RUN dotnet publish "GmRelay.DiscordBot.csproj" -c Release -o /app/publish /p:Use # Stage 2: Runtime FROM mcr.microsoft.com/dotnet/runtime:10.0-noble AS final WORKDIR /app + +# Install wget for healthcheck +RUN apt-get update && apt-get install -y --no-install-recommends wget \ + && rm -rf /var/lib/apt/lists/* + COPY --from=build /app/publish . USER $APP_UID ENTRYPOINT ["dotnet", "GmRelay.DiscordBot.dll"]