You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
install all Noto fonts (including Noto CJK fonts, such as "Noto Serif CJK JP" and "Noto Sans CJK JP")
I tried to further reduce the image size, but without success.
I tried to use "node:16-buster-slim" as base instead of "ubuntu:focal" and nodejs install but got warning "your OS is not officially supported by Playwright" and error "E: Package 'ttf-ubuntu-font-family' has no installation candidate".
Then, I tried to uninstall python3.8 that was installed when nodejs was installed:
I tried to purge all python3* packages by apt-get purge -y libpython3-stdlib libpython3.8-minimal libpython3.8-stdlib python3 python3-minimal python3.8 python3.8-minimal. The result was that it removed not only python3 but also nodejs. (nodejs depends on python3-minimal)
... I realized that removing python3 packages is not very good idea. It's less effective, the saving size will be about 24MB that is not very large compared to the current Docker image size.
The text was updated successfully, but these errors were encountered:
MurakamiShinyu
changed the title
Reduce size of Docker image by removing Python3
Reduce size of Docker image by removing Python3 etc.
Jul 4, 2022
Previously, we reduced the Docker image size by not installing WebKit and Firefox that are installed in the Playwright official Docker image:
fix: Reduce size of Docker image #309
However, the latest Docker image ghcr.io/vivliostyle/cli:5.2.1 size is bigger (2.25GB) because we added large fonts in the Docker image:
feat: Improve font configuration in the docker image #310
I tried to further reduce the image size, but without success.
I tried to use "node:16-buster-slim" as base instead of "ubuntu:focal" and nodejs install but got warning "your OS is not officially supported by Playwright" and error "E: Package 'ttf-ubuntu-font-family' has no installation candidate".
Then, I tried to uninstall python3.8 that was installed when nodejs was installed:
vivliostyle-cli/Dockerfile
Lines 15 to 16 in 0acdd28
I tried to purge all python3* packages by
apt-get purge -y libpython3-stdlib libpython3.8-minimal libpython3.8-stdlib python3 python3-minimal python3.8 python3.8-minimal
. The result was that it removed not only python3 but also nodejs. (nodejs depends on python3-minimal)... I realized that removing python3 packages is not very good idea. It's less effective, the saving size will be about 24MB that is not very large compared to the current Docker image size.
The text was updated successfully, but these errors were encountered: