layering issues
This commit is contained in:
@@ -41,6 +41,7 @@ RUN chmod +x /etc/services.d/backupbot/run
|
|||||||
# Copy web frontend
|
# Copy web frontend
|
||||||
COPY web /app
|
COPY web /app
|
||||||
RUN chmod +x /app/cgi-bin/backupbot.cgi
|
RUN chmod +x /app/cgi-bin/backupbot.cgi
|
||||||
|
|
||||||
# Expose web frontend port
|
# Expose web frontend port
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,11 @@ else
|
|||||||
source /config/backupbot.conf
|
source /config/backupbot.conf
|
||||||
set +a
|
set +a
|
||||||
fi
|
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
|
# Start Python HTTP server for web config in background
|
||||||
cd /app
|
cd /app
|
||||||
|
|||||||
Reference in New Issue
Block a user