mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Add Python support with uv package manager in Docker container
This commit is contained in:
1 parent
88736cb21e
commit
e45ebd96a0
4 files changed
+35
-2
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user