docker layers are my enemy
All checks were successful
Build and Push Docker Image / build (push) Successful in 48s

This commit is contained in:
2025-10-21 01:02:47 -07:00
parent 7fbeb3aa26
commit 300ad5b49c
2 changed files with 5 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ COPY backup.sh /usr/local/bin/backup.sh
RUN chmod +x /usr/local/bin/backup.sh
# Copy the environment variables for the config
COPY backupbot.env /config/backupbot.env
COPY backupbot.env /defaults/backupbot.env
# Copy s6 service for backupbot
COPY services/backupbot/run /etc/services.d/backupbot/run

View File

@@ -3,6 +3,10 @@ set -e
# Source env if available
if [[ -f /config/backupbot.env ]]; then
export $(grep -v '^#' /config/backupbot.env | xargs)
else
echo "[INFO] copying env vars from defaults..."
cp -r /defaults/backupbot.env /config/
export $(grep -V '^#' /config/backupbot.env)
fi
# Initialize default web interface if missing
if [ ! -d /config/web ]; then