bito-code-review[bot] commented on PR #43813:
URL: https://github.com/apache/superset/pull/43813#issuecomment-5521288298

   <!-- Bito Reply -->
   The suggestion to remove build-essential and development packages from the 
lean Docker image is correct. These packages are only required during the build 
phase to compile dependencies like `mysqlclient` and should be removed in the 
final image to reduce its size and improve security.
   
   To resolve this, you should use a multi-stage Docker build. In the first 
stage (builder), install the necessary build tools and compile the 
dependencies. In the second stage (runtime), copy only the necessary artifacts 
(like the installed Python packages) from the builder stage, ensuring that the 
build tools are not included.
   
   Would you like me to fetch all the comments and validate the rest of the PR 
to implement a comprehensive fix?


-- 
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