Author: Eiko

Tags: docker, glibc, musl, alpine linux, compile enviroment

Time: 2024-11-21 13:32:59 - 2024-11-21 13:32:59 (UTC)

The Problem

I have a server with very limited resources for compilers (storage, RAM, CPU) etc. I decide to shift compiling from the server to my computer with obviously more resources available.

But the problem is the alpine server uses musl while most linux including arch uses glibc, which makes compiled binaries on my arch laptop unable to run on the alpine server.

Solution: Use Docker to create a compile enviroment for alpine linux