Files
xb/app/scripts/bootstrap.sh

17 lines
462 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
echo "[1/3] Installing Python dependencies..."
python3 -m pip install --user --break-system-packages -r requirements.txt
echo "[2/3] Pulling converter image..."
docker pull minidocks/libreoffice
echo "[3/3] Verifying converter image..."
docker image inspect minidocks/libreoffice >/dev/null
echo "Bootstrap complete. Converter image is ready."