docker layers are my enemy
All checks were successful
Build and Push Docker Image / build (push) Successful in 48s
All checks were successful
Build and Push Docker Image / build (push) Successful in 48s
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user