From 81b8c1bda41fde02c863bb6740959a0759b2aa88 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 4 Jul 2026 11:08:39 -0700 Subject: [PATCH] Run nginx in the foreground so that the container restarts if it fails. --- Config/F-DroidRepo/Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Config/F-DroidRepo/Dockerfile b/Config/F-DroidRepo/Dockerfile index b0adda3..35ea9b1 100644 --- a/Config/F-DroidRepo/Dockerfile +++ b/Config/F-DroidRepo/Dockerfile @@ -24,10 +24,6 @@ RUN mkdir -pv "$FDROID" WORKDIR "$FDROID" RUN fdroid init -# Start Command # - -CMD nginx -g "daemon off;" - # This is where the image would get published. # # Configure F-Droid Repo # @@ -138,7 +134,8 @@ RUN cp -rv "$FDROID" "$WEBROOT/" # having the URL be fdroid/repo/? How do others handle this? RUN cp -rv "$REPO"/* "$WEBROOT/" -CMD service nginx start && \ - echo "\n*** F-Droid repository has been started successfully! ***\n" && \ - tail -F /var/log/nginx/access.log & \ - tail -F /var/log/nginx/error.log +# Start Command # + +CMD tail -F /var/log/nginx/access.log & \ + tail -F /var/log/nginx/error.log & \ + nginx -g "daemon off;"