News for hackers. Stuff that matters.
Re:Alpine makes Python Docker builds slower, and images larger by dkarp on Wednesday January 29, 2020 @01:59PM (#22184472)
Absolutely agree. Which is why I don't use Alpine linux for python projects and wouldn't recommend anyone else does.

In the article, they are only using pandas and not using a requirements.txt file. So it's a pretty perfect case to just use apk. In cases where you don't need many packages, you can still use Alpine if you would like without most of the downsides mentioned in the article.

Re:Alpine makes Python Docker builds slower, and images larger by swiley on Wednesday January 29, 2020 @06:00PM (#22186964)
I write a decent amount of python on alpine, in general I stick to the standard library and occasionally something like pyserial, sqlite, or numpy for specific things. IMO this attitude of pulling in dozens of packages with pip is pretty dangerous, I don’t care which language you’re using.
Re:Alpine makes Python Docker builds slower, and images larger by kryptn on Wednesday January 29, 2020 @06:12PM (#22187054)
What's the alternative?
Re:Alpine makes Python Docker builds slower, and images larger by swiley on Wednesday January 29, 2020 @06:14PM (#22187076)
Removing features, moving them into micro services, and sometimes writing a class or two yourself.
Re:Alpine makes Python Docker builds slower, and images larger by kryptn on Wednesday January 29, 2020 @06:36PM (#22187245)
That just sounds like distributing the dependencies. You'll still install them all, just not in the same spot.