From 53ee139cb37d026a7025d56e8d9389446881b702 Mon Sep 17 00:00:00 2001 From: Max Kagamine Date: Tue, 27 Aug 2024 10:11:46 +0900 Subject: [PATCH 1/2] Removed 'USER app' to fix issue with podman --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ff090fa..93aa98e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,6 @@ FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine RUN apk add --no-cache tzdata icu-libs -USER app WORKDIR /srv EXPOSE 80 21 10000-10009 From 197b7fcd65cec8fbc702a7f90346dcc647c89ca8 Mon Sep 17 00:00:00 2001 From: Max Kagamine Date: Tue, 27 Aug 2024 10:32:16 +0900 Subject: [PATCH 2/2] Modified healthcheck to use set port number --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 93aa98e..d961399 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,4 +30,4 @@ COPY --from=build /app/publish /app ENTRYPOINT ["dotnet", "/app/SqliteArchive.Server.dll"] HEALTHCHECK --start-period=1m --start-interval=1s \ - CMD wget --no-verbose --tries=1 --spider http://localhost || exit 1 + CMD wget --no-verbose --tries=1 --spider http://localhost:${ASPNETCORE_HTTP_PORTS} || exit 1