Skip to content

Commit f116049

Browse files
committed
chore: update opencode commit reference and set server URL in Dockerfile
Change the pinned opencode commit to a newer version for improved functionality and add an environment variable to specify the OPENCODE server URL during the build process.
1 parent a8f1980 commit f116049

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/core/src/docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ RUN echo 'export PATH="/home/opencode/.local/bin:$PATH"' >> /home/opencode/.zshr
517517
# Clone the fork and build opencode from source (as non-root user)
518518
# Pin to specific commit for reproducibility
519519
# Build opencode from source (BuildKit cache mounts disabled for now)
520-
RUN OPENCODE_COMMIT="3a4eccc7e883575e0d5a508f46036a9f243c06e8" \
520+
RUN OPENCODE_COMMIT="203568a603eed007dfd2c667f259e7d2fa56e084" \
521521
&& rm -rf /tmp/opencode-repo \
522522
&& git clone --depth 1 https://github.com/pRizz/opencode.git /tmp/opencode-repo \
523523
&& cd /tmp/opencode-repo \
@@ -528,6 +528,7 @@ RUN OPENCODE_COMMIT="3a4eccc7e883575e0d5a508f46036a9f243c06e8" \
528528
&& bun install --frozen-lockfile \
529529
&& bun run packages/opencode/script/build.ts --single \
530530
&& cd packages/app \
531+
&& export VITE_OPENCODE_SERVER_URL="http://localhost:3001" \
531532
&& bun run build \
532533
&& rm -rf /home/opencode/.bun/install/cache /home/opencode/.bun/cache /home/opencode/.cache/bun \
533534
&& cd /tmp/opencode-repo \

0 commit comments

Comments
 (0)