Skip to content

Commit fd2f002

Browse files
committed
Add opencode
1 parent 31dfdfb commit fd2f002

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ touch ~/.gitconfig
5252
touch ~/.gitignore
5353
```
5454

55+
```sh
56+
mkdir -p ~/.local/share/opencode
57+
[ ! -f ~/.local/share/opencode/auth.json ] && echo '{}' > ~/.local/share/opencode/auth.json
58+
```
59+
5560
```sh
5661
touch ~/.zsh_docker
5762
touch ~/.zsh_history

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ services:
1717
- ~/.bash_history:/home/php/.bash_history
1818
- ~/.gitconfig:/home/php/.gitconfig
1919
- ~/.gitignore:/home/php/.gitignore
20+
- ~/.local/share/opencode/auth.json:/home/node/.local/share/opencode/auth.json
2021
- ~/.zsh_docker:/home/php/.zsh_docker
2122
- ~/.zsh_history:/home/php/.zsh_history
2223
- $SSH_AUTH_SOCK:/ssh-agent

docker/development/php/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ RUN getent group ${GROUP_ID} >/dev/null || groupadd -g ${GROUP_ID} php \
5454

5555
USER php
5656

57+
WORKDIR /home/php
58+
59+
RUN curl -fsSL https://opencode.ai/install | bash -s -- --no-modify-path && mkdir -p "$HOME/.local/share/opencode"
60+
5761
WORKDIR /app
5862

5963
CMD /usr/bin/supervisord

0 commit comments

Comments
 (0)