From 7f2a93c69601c8c9eb8a8012818eec5b833871b6 Mon Sep 17 00:00:00 2001 From: Max Di Franco Date: Fri, 17 Apr 2026 13:40:05 +0200 Subject: [PATCH] Add IB Gateway support for ARM64 architecture Fixes #9409 Install Interactive Brokers Gateway in the ARM foundation image to enable Interactive Brokers data downloads and trading on Apple Silicon and other ARM64 platforms. Changes: - Add IB Gateway installation using stable-standalone ARM installer - Install required dependencies (libasound2, libnss3, libnspr4) - Mirror the AMD64 installation pattern for ARM64 compatibility Tested: - Build succeeds on ARM64 (Apple Silicon) - IB Gateway starts and connects successfully - Historical data downloads work via IB API --- DockerfileLeanFoundationARM | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DockerfileLeanFoundationARM b/DockerfileLeanFoundationARM index 2ed78793e2dc..53524a40dc4e 100644 --- a/DockerfileLeanFoundationARM +++ b/DockerfileLeanFoundationARM @@ -262,6 +262,14 @@ RUN apt-get update && apt install -y xvfb wkhtmltopdf && \ RUN wget -q https://cdn.quantconnect.com/fonts/foundation.zip && unzip -q foundation.zip && rm foundation.zip \ && mv "lean fonts/"* /usr/share/fonts/truetype/ && rm -rf "lean fonts/" "__MACOSX/" +# Install IB Gateway and its dependencies: Installs to /root/ibgateway +RUN apt-get update && apt-get -y install libasound2 libnss3 libnspr4 && apt-get clean && apt-get autoclean && apt-get autoremove --purge -y && rm -rf /var/lib/apt/lists/* && \ + mkdir -p /root/ibgateway && \ + wget -q https://download2.interactivebrokers.com/installers/ibgateway/stable-standalone/ibgateway-stable-standalone-linux-arm.sh && \ + chmod 777 ibgateway-stable-standalone-linux-arm.sh && \ + ./ibgateway-stable-standalone-linux-arm.sh -q -dir /root/ibgateway && \ + rm ibgateway-stable-standalone-linux-arm.sh + # Install dotnet 9 sdk & runtime # The .deb packages don't support ARM, the install script does ENV PATH="/root/.dotnet:${PATH}"