Run nginx in the foreground so that the container restarts if it fails.
This commit is contained in:
@@ -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;"
|
||||
|
||||
Reference in New Issue
Block a user