Hi,
I was just browsing through the project at the first link you sent (foss-asic-tools). It looks like much of that repo is actually dedicated to building layered docker images, with a suite of tools installed. Long term, I think it would be nice if gdsfactory could be added as one of the tools in their suite, so you may want to make an issue there with the suggestion.
In the shorter term, you should certainly be able to do this yourself... I think the most straightforward way should be to make a new Dockerfile, where you reference the desired (i.e. efabless) image as your base, then install mamba and gdsfactory on top of it. You can use the
gdsfactory dev container as a template.
You may be able to make the process more efficient with a
multi-stage build, pulling what's required from the already-built gdsfactory image, but that's a bit more advanced, and I'm not super familiar with it myself :)
Note that I recommend you install gdsfactory into mamba and not into the system python... Partially that's because that's what the gdsfactory image does already, and partially that's because it will nicely sandbox you from the system python and let use whichever version you want. I notice that in the efabless image they use python 3.6, but I'd recommend using python 3.10 with gdsfactory.
Thanks,
Troy