Python was already present there, adding bash to the image didn't help, and I know no other "complex dependencies" like perl it might need.
For example, on Ubuntu all it needs is:
apt-get -yy install \
build-essential \
libcurl4-openssl-dev \
libcurl3-gnutls \
libgl1-mesa-dev \
libgtk-3-bin \
libosmesa-dev \
libpython3.10 \
xorg
And on TinyCore I tried to add all following packages:
RUN tce-load -wic \
python3.9
RUN tce-load -wic glibc_base-dev
RUN tce-load -wic glibc_add_lib
RUN tce-load -wic glibc_apps
RUN tce-load -wic glibc_gconv
RUN tce-load -wic glibc_i18n_locale
RUN tce-load -wic libGL
RUN tce-load -wic curl
RUN tce-load -wic curl-dev
RUN tce-load -wic curlg
RUN tce-load -wic curlg-dev
RUN tce-load -wic gtk3
RUN tce-load -wic gtk3-dev
RUN tce-load -wic gtk3-gir
RUN tce-load -wic Xorg-7.7
RUN tce-load -wic zlib_base-dev
RUN tce-load -wic coreutils
RUN tce-load -wic util-linux
RUN tce-load -wic bash
Perhaps there is any tool to not guess, but see for sure, which file it has not found?