Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the Containerfile #30

Merged
merged 1 commit into from
Jun 27, 2023
Merged

Change the Containerfile #30

merged 1 commit into from
Jun 27, 2023

Conversation

brahle
Copy link
Contributor

@brahle brahle commented Apr 10, 2023

Summary 📝

Alpine distribution of python is very slow when using pip to install the dependencies. For a requirements.txt file that includes pandas and numpy, it ran for about 25 minutes. According to this Stack Overflow answer, Alpine downloads the source file and compiles them from scratch, which is inefficient.

Changing the source image to -slim drops the time for that step down to 1.5 minutes.

Details

  1. Change the initial container image from -alpine to -slim.

Bugfixes 🐛 (delete if didn't have any)

  • Improves installation speed of python packages in the container environment.

Checks

  • Tested Changes
  • Stakeholder Approval

Alpine distribution of python is very slow when using `pip` to install the dependencies. For a `requirements.txt` file that includes `pandas` and `numpy`, it ran for about 25 minutes. According to [this](https://stackoverflow.com/a/60086958) stakoverflow answer, Alpine downloads the source file and compiles them from scratch, which is inefficient. 

Changing the source image to `-slim` drops the time for that step down to 1.5 minutes.
@rochacbruno rochacbruno merged commit 3f42f92 into rochacbruno:main Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants