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 <noreply@anthropic.com>
This commit is contained in:
@@ -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 && \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user