Add Python support with uv package manager in Docker container

This commit is contained in:
Chris Scott committed 2025-12-13 00:39:09 -05:00
1 parent 88736cb21e
commit e45ebd96a0
4 files changed
+35 -2

No files matched your search

+18 -1
View File
@@ -3,7 +3,7 @@ set -e
export HOME=/home/node
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$HOME/.opencode/bin:$HOME/.local/bin:$PATH"
export PATH="$BUN_INSTALL/bin:$HOME/.opencode/bin:$HOME/.local/bin:/usr/local/bin:$PATH"
echo "🔍 Checking Bun installation..."
@@ -22,6 +22,23 @@ else
echo "✅ Bun is installed (version: $BUN_VERSION)"
fi
echo "🔍 Checking uv installation..."
if ! command -v uv >/dev/null 2>&1; then
echo "❌ uv not found. Installing..."
curl -LsSf https://astral.sh/uv/install.sh | sh
if ! command -v uv >/dev/null 2>&1; then
echo "❌ Failed to install uv. Exiting."
exit 1
fi
echo "✅ uv installed successfully"
else
UV_VERSION=$(uv --version 2>&1 || echo "unknown")
echo "✅ uv is installed (version: $UV_VERSION)"
fi
echo "🔍 Checking OpenCode installation..."
MIN_OPENCODE_VERSION="1.0.137"