From 9d0750ab277bc6a28f747e7b3360ed3d07b0c5e3 Mon Sep 17 00:00:00 2001 From: Michael Simard Date: Thu, 22 Jan 2026 09:28:08 -0600 Subject: [PATCH] Remove redundant COPY config/ from Dockerfile, add config copy to setup Config is volume-mounted in docker-compose, making the COPY unnecessary and causing build failures when config/ is gitignored. Co-Authored-By: Claude Opus 4.5 --- Dockerfile | 1 - setup-unraid.sh | 13 ++++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0f9dba7..53f24d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,6 @@ RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY src/ ./src/ -COPY config/ ./config/ # Create non-root user for security RUN useradd -m -u 1000 appuser && \ diff --git a/setup-unraid.sh b/setup-unraid.sh index 3fbfa3d..bdb88ba 100755 --- a/setup-unraid.sh +++ b/setup-unraid.sh @@ -77,7 +77,18 @@ scp -q ".env" "$UNRAID_HOST:$REMOTE_PATH/.env" echo " .env copied" echo "" -echo "Step 5: Testing git connectivity from Unraid..." +echo "Step 5: Copying config/ to Unraid..." +if [ -d "config" ]; then + ssh "$UNRAID_HOST" "mkdir -p $REMOTE_PATH/config" + scp -q config/* "$UNRAID_HOST:$REMOTE_PATH/config/" + echo " config/ copied" +else + echo " WARNING: Local config/ directory not found" + echo " Create config/authorized_devices.json manually on Unraid" +fi + +echo "" +echo "Step 6: Testing git connectivity from Unraid..." if ssh "$UNRAID_HOST" "ssh -o ConnectTimeout=10 -p $GIT_PORT git@$GIT_HOST 2>&1 | grep -q 'successfully authenticated'"; then echo " Git server accessible" else