Optimizations applied: - Add pip cache purge after pip install (~7.5MB saved) - Remove /usr/share/doc documentation (~7.5MB saved) - Remove pocketsphinx speech recognition packages (~37MB saved) - Remove libflite1 TTS library (~28MB saved) Packages removed: - pocketsphinx-en-us (US English speech model) - pocketsphinx (speech recognition library) - libflite1 (text-to-speech engine) - libpocketsphinx3 (speech recognition frontend) Reason: These packages are not used in Python code: - Speech recognition: Handled by external stt-realtime container - Text-to-speech: Handled by external RVC container Note: Could not remove Vulkan/Mesa drivers (~130MB) because: - Playwright installs them via --with-deps flag - Removing them also removes libgl1 (required by OpenCV) - libgl1 pulls back Mesa graphics drivers Total savings: ~80MB (from previous 2.41GB baseline) Container size remains 2.41GB due to essential package dependencies
2.1 KiB
2.1 KiB