fix(discord): add wget to Dockerfile for healthcheck
PR Checks / test-and-build (pull_request) Successful in 7m30s
PR Checks / test-and-build (pull_request) Successful in 7m30s
Issue #32
This commit is contained in:
@@ -15,6 +15,11 @@ RUN dotnet publish "GmRelay.DiscordBot.csproj" -c Release -o /app/publish /p:Use
|
|||||||
# Stage 2: Runtime
|
# Stage 2: Runtime
|
||||||
FROM mcr.microsoft.com/dotnet/runtime:10.0-noble AS final
|
FROM mcr.microsoft.com/dotnet/runtime:10.0-noble AS final
|
||||||
WORKDIR /app
|
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 .
|
COPY --from=build /app/publish .
|
||||||
USER $APP_UID
|
USER $APP_UID
|
||||||
ENTRYPOINT ["dotnet", "GmRelay.DiscordBot.dll"]
|
ENTRYPOINT ["dotnet", "GmRelay.DiscordBot.dll"]
|
||||||
|
|||||||
Reference in New Issue
Block a user