Remove arm64 COPY from Dockerfile, simplify for x86_64 only

This commit is contained in:
southseact-3d
2026-02-10 12:31:16 +00:00
parent dc071a04e8
commit c9569faadd

View File

@@ -83,14 +83,7 @@ RUN ARCH="${TARGETARCH:-}" && \
# CI builds these binaries from the opencode folder.
COPY opencode /opt/opencode-src
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 \
RUN cp /opt/opencode-bin/opencode-linux-x64 /usr/local/bin/opencode \
&& chmod +x /usr/local/bin/opencode
# Removed Gemini CLI - not needed for Shopify AI App Builder