Installing Haxe in Docker container without Neko

I want to install Haxe into a Docker container to use it to compile some stuff and things and so on. I’m using Ubuntu 22.04 base image and I added Haxe PPA in there. All is well and dandy until I run apt install haxe which asks me if I want to install A TON of additional packages, including systemd and things like Advaita theme icons and things. I managed to narrow it down to neko being a culprit for that bload, i.e. this is what I get for apt install neko:

cuser@1ddc358795b7:~$ sudo apt install neko 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  adwaita-icon-theme at-spi2-core dbus dbus-user-session dconf-gsettings-backend dconf-service dmsetup fontconfig gir1.2-glib-2.0
  gsettings-desktop-schemas gtk-update-icon-cache hicolor-icon-theme humanity-icon-theme libapparmor1 libapr1 libargon2-1 libatk-bridge2.0-0
  libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3 libcairo-gobject2 libcairo2 libcolord2
  libcryptsetup12 libcups2 libdatrie1 libdbus-1-3 libdconf1 libdevmapper1.02.1 libepoxy0 libfribidi0 libgc1 libgdk-pixbuf-2.0-0
  libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgirepository-1.0-1 libglib2.0-0 libglib2.0-data libgraphite2-3 libgtk-3-0 libgtk-3-bin
  libgtk-3-common libharfbuzz0b libip4tc2 libjson-c5 libkmod2 liblcms2-2 libmariadb3 libmbedtls14 libmbedx509-1 libneko2 libnss-systemd
  libpam-systemd libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0 librsvg2-2 librsvg2-common libsystemd0 libthai-data libthai0
  libwayland-client0 libwayland-cursor0 libwayland-egl1 libxcb-render0 libxcb-shm0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxi6
  libxinerama1 libxkbcommon0 libxrandr2 libxrender1 libxtst6 mariadb-common mysql-common networkd-dispatcher python3-dbus python3-gi
  session-migration shared-mime-info systemd systemd-sysv systemd-timesyncd ubuntu-mono x11-common xdg-user-dirs xkb-data
Suggested packages:
  colord cups-common gvfs liblcms2-utils librsvg2-bin libapache2-mod-neko neko-dev iw | wireless-tools python-dbus-doc systemd-container
  libtss2-esys-3.0.2-0 libtss2-mu0 libtss2-rc0 policykit-1
The following NEW packages will be installed:
  adwaita-icon-theme at-spi2-core dbus dbus-user-session dconf-gsettings-backend dconf-service dmsetup fontconfig gir1.2-glib-2.0
  gsettings-desktop-schemas gtk-update-icon-cache hicolor-icon-theme humanity-icon-theme libapparmor1 libapr1 libargon2-1 libatk-bridge2.0-0
  libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3 libcairo-gobject2 libcairo2 libcolord2
  libcryptsetup12 libcups2 libdatrie1 libdbus-1-3 libdconf1 libdevmapper1.02.1 libepoxy0 libfribidi0 libgc1 libgdk-pixbuf-2.0-0
  libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgirepository-1.0-1 libglib2.0-0 libglib2.0-data libgraphite2-3 libgtk-3-0 libgtk-3-bin
  libgtk-3-common libharfbuzz0b libip4tc2 libjson-c5 libkmod2 liblcms2-2 libmariadb3 libmbedtls14 libmbedx509-1 libneko2 libnss-systemd
  libpam-systemd libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0 librsvg2-2 librsvg2-common libthai-data libthai0
  libwayland-client0 libwayland-cursor0 libwayland-egl1 libxcb-render0 libxcb-shm0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxi6
  libxinerama1 libxkbcommon0 libxrandr2 libxrender1 libxtst6 mariadb-common mysql-common neko networkd-dispatcher python3-dbus python3-gi
  session-migration shared-mime-info systemd systemd-sysv systemd-timesyncd ubuntu-mono x11-common xdg-user-dirs xkb-data
The following packages will be upgraded:
  libsystemd0
1 upgraded, 94 newly installed, 0 to remove and 91 not upgraded.
Need to get 25.2 MB of archives.
After this operation, 107 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

My question is: is there a way to NOT install Neko when installing Haxe from PPA on Ubuntu 22.04? I’ll be compiling to JavaScript and Hashlink in this Docker container, so I don’t need Neko and would like to keep container minimal in size and scope.

Neko depends on GTK for the ui ndll, hence the dependencies. If you built it yourself, you could disable that specific portion… but that isn’t really an option if you are installing with apt. I recommend just grabbing the .tar.gz during the container build from GitHub Releases.

Neko is required for haxelib to work for the record, so going without it isn’t really an option for most

Oh, I see, I do need haxelib so for now it’ll have to do.
I guess I can build from source a headless version of neko down the road if I need to.
Tnx.