From 74608a7e2ad28014cf00e54023baee858a9b7349 Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Tue, 13 Jan 2026 11:19:11 -0500 Subject: [PATCH] Fix opencode install script handling for latest version --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 54e44d39..b84f542e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,7 +65,11 @@ RUN echo "Installing uv=${UV_VERSION} opencode=${OPENCODE_VERSION}" && \ mv /root/.local/bin/uv /usr/local/bin/uv && \ mv /root/.local/bin/uvx /usr/local/bin/uvx && \ chmod +x /usr/local/bin/uv /usr/local/bin/uvx && \ - curl -fsSL https://opencode.ai/install | bash -s -- --version ${OPENCODE_VERSION} --no-modify-path && \ + if [ "${OPENCODE_VERSION}" = "latest" ]; then \ + curl -fsSL https://opencode.ai/install | bash -s -- --no-modify-path; \ + else \ + curl -fsSL https://opencode.ai/install | bash -s -- --version ${OPENCODE_VERSION} --no-modify-path; \ + fi && \ mv /root/.opencode /opt/opencode && \ chmod -R 755 /opt/opencode && \ ln -s /opt/opencode/bin/opencode /usr/local/bin/opencode