opendatahub-io / notebooks

Notebook images for ODH
Apache License 2.0
17 stars 59 forks source link

Large layer created by fixing permisisons using `RUN chmod -R g+w /opt/app-root/lib/python3.9/site-packages && fix-permissions /opt/app-root -P` #539

Closed jiridanek closed 2 months ago

jiridanek commented 4 months ago

The below step in jupyter-pytorch-ubi9-python-3_9 and probably other images creates a large layer. Fix the permissions in the previous step already.

STEP 5/5: RUN chmod -R g+w /opt/app-root/lib/python3.9/site-packages &&     fix-permissions /opt/app-root -P
COMMIT ghcr.io/jiridanek/notebooks/workbench-images:jupyter-pytorch-ubi9-python-3.9-2024a_20240523

Note that changing the metadata of files, for example, changing file permissions or ownership of a file, can also result in a copy_up operation, therefore duplicating the file to the writable layer.

from https://docs.docker.com/storage/storagedriver/