Skip to content

dockerfiles/diy/dockerfiles/Dockerfile.repo builds an unusable image due to rust 19.0 vs bookworm glibc incompatibility #8450

@theJC

Description

@theJC

Describe the bug

build_docker_image.sh & Dockerfile.repo use Rust 1.90.0 to build binary, which requires a newer glibc than the the one provided by the bookworm-slim that is used for the final built image.

I was able to get past this by changing the dockerfile to use trixie-slim instead.

To Reproduce

Build with build_docker_image.sh
Attempt to run

Expected behavior

Router will run

Output

Using config file at /dist/config/qa.yaml
No APOLLO_KEY_OVERRIDE present
Starting router
/dist/router: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by /dist/router)

Additional context

Dockerfile uses this to build: FROM rust:1.90.0 as build
Dockerfile uses this image in final generated image: FROM debian:bookworm-slim

Rust 1.90.0 : ldd (Debian GLIBC 2.41-12) 2.41
Digest: sha256:976303ceda00c5f21d6fe97500927285c7e0f6a2e8df71ae18a6c8e9b37550a1 used in my test

Bookworm slim: ldd (Debian GLIBC 2.36-9+deb12u13) 2.36
Digest: sha256:7e490910eea2861b9664577a96b54ce68ea3e02ce7f51d89cb0103a6f9c386e0 used in my test

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions