-
-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Is this a new feature request?
- I have searched the existing issues
Wanted change
It appears that Docker has two identical copies of the Home Assistant installation, leading to the container using nearly twice the necessary storage.
docker ps --size | grep homeassistant
91e0624d0bb7 lscr.io/linuxserver/homeassistant:latest "/init" 26 hours ago Up 6 hours 0.0.0.0:8123-8124->8123-8124/tcp, :::8123-8124->8123-8124/tcp
homeassistant 1.51GB (virtual 3.21GB)Reason for change
Cause
The issue seems to stem from the following line:
| mv "${PY_LOCAL_PATH}.bak" "${PY_LOCAL_PATH}" |
This operation results in a full copy of most image contents, increasing the final installation size by approximately 1.7GB. This step aims to change the ownership of the Python environment.
Suggested Improvement
Would it be possible to achieve the same result, running python with user ABC, in a more storage-efficient way?
Thanks for your time and consideration!
Proposed code change
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Done