Skip to content

Commit 929e2a1

Browse files
committed
feat(docker): add Gemini auth plugin support
Install opencode-gemini-auth plugin globally via bun, add it to the opencode plugin configuration, and copy the credential conversion script for runtime use.
1 parent 2086810 commit 929e2a1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ bun install -g "opencode-ai@${OPENCODE_VERSION}" || exit 1
135135
&& popd
136136
) || exit 1
137137

138+
###
139+
# Gemini plugin
140+
#
141+
bun install -g 'opencode-gemini-auth@latest' || exit 1
142+
138143
###
139144
# agent browser
140145
(
@@ -200,7 +205,8 @@ RUN <<'FOE'
200205
{
201206
"$schema": "https://opencode.ai/config.json",
202207
"plugin": [
203-
"engram"
208+
"engram",
209+
"file:///usr/local/bun/install/global/node_modules/opencode-gemini-auth"
204210
],
205211
"mcp": {
206212
"engram": {
@@ -255,6 +261,7 @@ EOF
255261
FOE
256262

257263
COPY --chmod=0555 entrypoint.sh /entrypoint.sh
264+
COPY --chmod=0555 convert-gemini.auth.ts /usr/local/bin/convert-gemini.auth.ts
258265

259266
USER bun:bun
260267

0 commit comments

Comments
 (0)