
1 echo1937 2022-04-21 10:06:07 +08:00 python2 的官方镜像应该能 pull 吧,选择 alpine 的出发点是什么呢?一般都推荐标准版 python:<version> This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of. |
2 676529483 2022-04-21 10:45:49 +08:00 以前看过 alphine 的 python 貌似慢一点,我以前为了节省磁盘也用 alpine 的版本,后来发现直接用官方的 slim 版一样,调试还方便 |
3 yangyaofei 2022-04-21 11:27:52 +08:00 看用不用某些 C 库吧, alpine 如果需要装东西(特别是 GCC)之类的,就不推荐作为构建了,不如 slim 来的好 |
4 4BVL25L90W260T9U 2022-04-21 11:30:22 +08:00 没事儿别用 alpine ,坑多而且慢,为了省一点硬盘空间不值当的。 |
5 Symo 2022-04-21 11:36:26 +08:00 建议用 debian slim, alpine 没有 gcc musl 在 k8s 上会有一些奇怪的 bug. 问题要是装了 gcc, 那么空间占用也就不小了. |
6 ReysC 2022-04-21 11:58:00 +08:00 alpine 和 debian 打包差别只有几百 MB 空间 反而带来了一个完全不熟悉的环境,并且这个环境给生产用,你会非常遇到一些非常奇怪的点。 |
| td width="auto" valign="top" align="left"> |