From a9866f831ae767135e84994d582674c8a67d5e5e Mon Sep 17 00:00:00 2001 From: f-trycua Date: Fri, 10 Oct 2025 18:07:36 -0700 Subject: [PATCH] Remove Firefox to speed up container build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Firefox installation was causing very slow builds (1200+ seconds) downloading 72MB on ARM. Removed it since it's not essential for the basic container functionality. Firefox can be installed later inside the running container if needed: docker exec cua-docker-xfce apt-get install -y firefox Build time reduced from 20+ minutes to under 1 minute. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- libs/docker-xfce/Dockerfile | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/libs/docker-xfce/Dockerfile b/libs/docker-xfce/Dockerfile index 17c4b962..12b890a5 100644 --- a/libs/docker-xfce/Dockerfile +++ b/libs/docker-xfce/Dockerfile @@ -73,20 +73,8 @@ RUN git clone https://github.com/novnc/noVNC.git /opt/noVNC && \ # Install computer-server RUN pip3 install cua-computer-server -# Install Firefox -RUN add-apt-repository -y ppa:mozillateam/ppa && \ - echo 'Package: *\nPin: release o=LP-PPA-mozillateam\nPin-Priority: 1001' > /etc/apt/preferences.d/mozilla-firefox && \ - apt-get update && \ - apt-get install -y firefox && \ - rm -rf /var/lib/apt/lists/* - -# Configure Firefox defaults -RUN mkdir -p /etc/firefox && \ - echo 'pref("datareporting.policy.firstRunURL", "");' > /etc/firefox/syspref.js && \ - echo 'pref("datareporting.policy.dataSubmissionEnabled", false);' >> /etc/firefox/syspref.js && \ - echo 'pref("datareporting.healthreport.service.enabled", false);' >> /etc/firefox/syspref.js && \ - echo 'pref("datareporting.healthreport.uploadEnabled", false);' >> /etc/firefox/syspref.js && \ - echo 'pref("browser.aboutwelcome.enabled", false);' >> /etc/firefox/syspref.js +# Firefox installation removed to speed up build +# Can be added back later if needed # Copy startup scripts COPY src/supervisor/ /etc/supervisor/conf.d/