mirror of
https://github.com/trycua/computer.git
synced 2025-12-31 18:40:04 -06:00
Remove Firefox to speed up container build
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user