Skip to content

Instantly share code, notes, and snippets.

@jaredkrinke
Created January 25, 2026 05:37
Show Gist options
  • Select an option

  • Save jaredkrinke/fcf3c92736463c99c5b92f528ea67f92 to your computer and use it in GitHub Desktop.

Select an option

Save jaredkrinke/fcf3c92736463c99c5b92f528ea67f92 to your computer and use it in GitHub Desktop.
Building Oasis Linux from Alpine Linux

Following the official install instructions I built Oasis under Alpine Linux (which already uses musl libc), requiring the following:

Notes:

  • Needed to symlink lua to lua5.4
  • Built in a few minutes
  • Resulting binaries (with no toolchain) totaled 82 MB
  • Full source, build objects, Git overhead, etc. added roughly 1.5 GB
  • I didn't build a kernel or add a bootloader since I was planning to use this in a chroot or container

Dependencies:

apk add binutils bison cc curl git gzip linux-headers lua ninja tzdata-utils pax xz zutils

config.lua: Needed to set platform and cc (note the second key was not present in the template!)

target={
  platform='x86_64-alpine-linux-musl-gcc',
  cc='x86_64-alpine-linux-musl-gcc',
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment