Support Alpine? #235
Replies: 3 comments 1 reply
-
Interesting. I'll look into adding Using a separate build image and copying out the conda environment makes sense if are doing something like building an image for a production micro service, where you will run one program and nothing else. You loose the activation scripts and some flexibility in exchange for a smaller image with less attack surface. Users are of course welcome to do this (and there are some existing tools that build conda based images like this), but I've generally assumed |
Beta Was this translation helpful? Give feedback.
-
I opened issue #236 to track adding an alpine base-image. In the issue I referenced this discussion and I'm surprised that an automatic link to the issue did not get generated within this discussion. |
Beta Was this translation helpful? Give feedback.
-
Alpine base image was added 3 Feb 2023. |
Beta Was this translation helpful? Give feedback.
-
I recently did some interesting stuff with the conda-forge automerge bot.
I was surprised that the following actually worked. (I don't like some of the intermediate stuff, so here's the essential bit):
This is slightly screwy since
bash
isn't prepackaged with Alpine, so you can't "properly" activate withsh
(unless one also runsapk add --no-cache bash
). But in practice it works great.I don't really know anything about glibc or this base container (it was already being used by the automerge bot, which needs to be as small as possible since it's pulled by GH Actions each time). But it seems to me like an interesting use case.
I find two ingredients here interesting:
Might it make sense to consider building images from frolvlad/alpine-glibc?
Beta Was this translation helpful? Give feedback.
All reactions