layering issues
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m14s

This commit is contained in:
2025-10-20 16:21:56 -07:00
parent 12773ef7e7
commit 14c0a4f522
2 changed files with 7 additions and 2 deletions

View File

@@ -26,8 +26,8 @@ COPY services/backupbot/run /etc/services.d/backupbot/run
RUN chmod +x /etc/services.d/backupbot/run
# Copy web frontend
COPY web/ /config/web/
RUN chmod +x /config/web/backupbot.cgi
COPY web /defaults/web
RUN chmod +x /defaults/web/backupbot.cgi
# Expose web frontend port
EXPOSE 8080

View File

@@ -4,6 +4,11 @@ set -e
if [[ -f /config/backupbot.env ]]; then
export $(grep -v '^#' /config/backupbot.env | xargs)
fi
# Initialize default web interface if missing
if [ ! -d /config/web ]; then
echo "[INFO] Populating /config/web from defaults..."
cp -r /defaults/web /config/
fi
# Start Python HTTP server for web config in background
cd /config/web