updated opencode to 2.1.4
CI / Build opencode docker images (push) Successful in 9m46s

This commit is contained in:
2026-10-24 09:42:49 +08:00
parent e83d846130
commit fb5fdcdc60
2 changed files with 5 additions and 6 deletions
+2 -3
View File
@@ -20,7 +20,7 @@ ENV OPENCODE_CHANNEL=prod
ENV OPENCODE_VERSION=${OPENCODE_VERSION}
RUN --mount=type=cache,target=/home/builder/.bun/install/cache,uid=1126 bun install --frozen-lockfile --ignore-scripts
#ADD --chown=builder:builder ./build.ts ./packages/cli/script/build.ts --single
RUN --mount=type=cache,target=/home/builder/.bun/install/cache,uid=1126 ./packages/cli/script/build.ts --single --baseline --skip-install
RUN --mount=type=cache,target=/home/builder/.bun/install/cache,uid=1126 ./packages/cli/script/build.ts --single --baseline
@@ -44,13 +44,12 @@ RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed \
xdg-utils rustup rust-analyzer python-pipx ripgrep git rustup gradle curl sccache openssh \
bash-language-server marksman python-lsp-server vscode-css-languageserver x86_64-unknown-linux-musl-zlib x86_64-unknown-linux-musl-gcc \
vscode-html-languageserver vscode-json-languageserver yaml-language-server base-devel docker docker-buildx docker-compose less websocat \
npm gtk3 alsa-lib trunk
npm gtk3 alsa-lib trunk python-uv
RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed jdk25-graalvm-bin
RUN useradd -m -d /var/lib/opencode opencode
RUN mkdir /workspace
RUN chown opencode:opencode /workspace
USER opencode
RUN pipx install pip-tools
USER root
ADD --chown=opencode:opencode ./opencode.json /etc/opencode/opencode.json
RUN mkdir -p /usr/lib/opencode/addons