layering issues
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m14s
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m14s
This commit is contained in:
@@ -26,8 +26,8 @@ COPY services/backupbot/run /etc/services.d/backupbot/run
|
|||||||
RUN chmod +x /etc/services.d/backupbot/run
|
RUN chmod +x /etc/services.d/backupbot/run
|
||||||
|
|
||||||
# Copy web frontend
|
# Copy web frontend
|
||||||
COPY web/ /config/web/
|
COPY web /defaults/web
|
||||||
RUN chmod +x /config/web/backupbot.cgi
|
RUN chmod +x /defaults/web/backupbot.cgi
|
||||||
# Expose web frontend port
|
# Expose web frontend port
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ set -e
|
|||||||
if [[ -f /config/backupbot.env ]]; then
|
if [[ -f /config/backupbot.env ]]; then
|
||||||
export $(grep -v '^#' /config/backupbot.env | xargs)
|
export $(grep -v '^#' /config/backupbot.env | xargs)
|
||||||
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 /config/web
|
cd /config/web
|
||||||
|
|||||||
Reference in New Issue
Block a user