added docker build

This commit is contained in:
southseact-3d
2026-02-10 11:57:46 +00:00
parent 8e9f2dec8e
commit ec3aa6a6b5
2 changed files with 125 additions and 3 deletions

View File

@@ -79,10 +79,19 @@ RUN ARCH="${TARGETARCH:-}" && \
"https://github.com/tsl0922/ttyd/releases/download/${TTYD_VERSION}/ttyd.${TTYD_ARCH}" \
&& chmod +x /usr/local/bin/ttyd
# Install OpenCode from bundled anomalyco/opencode source
# Install OpenCode from locally built CLI artifacts
# CI builds these binaries from the opencode folder.
COPY opencode /opt/opencode-src
RUN bash /opt/opencode-src/install --no-modify-path \
&& ln -sf /root/.opencode/bin/opencode /usr/local/bin/opencode
COPY opencode/packages/opencode/dist/opencode-linux-x64/bin/opencode /opt/opencode-bin/opencode-linux-x64
COPY opencode/packages/opencode/dist/opencode-linux-arm64/bin/opencode /opt/opencode-bin/opencode-linux-arm64
RUN if [ "$TARGETARCH" = "amd64" ]; then \
cp /opt/opencode-bin/opencode-linux-x64 /usr/local/bin/opencode; \
elif [ "$TARGETARCH" = "arm64" ]; then \
cp /opt/opencode-bin/opencode-linux-arm64 /usr/local/bin/opencode; \
else \
echo "Unsupported architecture: $TARGETARCH" && exit 1; \
fi \
&& chmod +x /usr/local/bin/opencode
# Removed Gemini CLI - not needed for Shopify AI App Builder