fix(opencode): add tar dependency and symlink binary to /usr/local/bin

This commit is contained in:
Fusion
2026-05-20 17:48:36 +02:00
parent f07a632c86
commit f2c3264be6
6 changed files with 184 additions and 3 deletions
+3 -3
View File
@@ -180,11 +180,11 @@ services:
ports:
- "3000:3000"
command: >
sh -c "apt-get update && apt-get install -y curl git &&
sh -c "apt-get update && apt-get install -y curl git tar &&
curl -fsSL https://opencode.ai/install | bash &&
export PATH=\"$HOME/.local/bin:$PATH\" &&
ln -sf $HOME/.opencode/bin/opencode /usr/local/bin/opencode &&
mkdir -p /workspace &&
echo 'OpenCode installed. Use the Terminal button to start opencode.' &&
echo 'OpenCode installed. Run: opencode' &&
tail -f /dev/null"
stdin_open: true
tty: true