sebastianliebscher commented on PR #24748:
URL: https://github.com/apache/superset/pull/24748#issuecomment-1643617260

   Hi @alekseyolg, TIL about `RUN --mount`
   
   I tested your changes and saw that the image size increased.
   
   ```sh
   (.venv) ➜  superset git:(alekseyolg/master) docker images
   REPOSITORY                                      TAG            IMAGE ID      
 CREATED          SIZE
   suset-pr24748                                   latest         f7fc9c4618d6  
 2 minutes ago    1.25GB
   suset-master                                    latest         00d2dc3154e8  
 10 minutes ago   1.11GB
   ```
   
   By splitting `COPY --chown` into a `COPY` and `RUN chown -R` the contents 
will take up space in multiple layers resulting in redundant image size. See 
here https://github.com/apache/superset/pull/23624
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to