a16z/magi

Update Debian Version in Dockerfile to Resolve GLIBC Compatibility Issue

Closed this issue · 2 comments

Description of Changes

Currently, the image is being built using the rust:latest base image, which is based on debian:bullseye, where:

ldd --version
ldd (Debian GLIBC 2.31-13+deb11u6) 2.31

Then, the final binary is placed in the debian:buster image, where version is:

ldd --version
ldd (Debian GLIBC 2.28-10+deb10u2) 2.28

This leads to an error during application startup, due to a missing GLIBC_2.29 version, as shown below:

magi: /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by magi)

To resolve this issue and ensure library compatibility, it's recommended to use the same Debian version for both images. In this case, it's proposed to switch from debian:buster-slim to debian:bullseye-slim.

Changes in Dockerfile

-FROM debian:buster-slim
+FROM debian:bullseye-slim

Added some more changes #156

Closed by #156