aws / amazon-mwaa-docker-images

Apache License 2.0
27 stars 11 forks source link

Remove/Disable pip after successfully installing user requirements #21

Open rafidka opened 9 months ago

rafidka commented 9 months ago

Overview

To stop the user from breaking the Python environment accidentally if they install packages directly via pip, we would like to completely control the installation of the packages and limit what the user can do to providing a requirements.txt. So, in our entrypoint, after successfully installing the customer requirements, we want to disable or, even better, remove pip somehow so the user cannot use it anymore, e.g. in DAGS.

Acceptance Criteria