3 ms·
I see you've not yet encountered Alpine-based Docker containers. $ docker run --rm -ti alpine sh / # bash sh: bash: not found / # python
by majewsky 9y ago
I see you've not yet encountered Alpine-based Docker containers.
$ docker run --rm -ti alpine sh
/ # bash
sh: bash: not found
/ # python
sh: python: not found
/ # perl
sh: perl: not found
/ # ruby
sh: ruby: not found
Sure, you can install all of these with a single `apk add`, but it makes your container much fatter, i.e. every CI job that has to pull the image will be taking a longer time. Same for when you push the image into a far-away datacenter.
- user5994461 9y agoIt's one of the reason that alpine should not be used outside of tests and toys projects. It cannot be substituted to an usual distribution.
- wrs 9y agoIn a base Alpine container, it would be awfully hard to build anything interesting. You are probably going to need to install some build tools first anyway. (Thus the two-stage container pattern.)