From 219960399b5e3116e512ae14d169574a4eb5ff12 Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Date: Thu, 9 Apr 2026 11:48:46 +0200 Subject: [PATCH] fix: update Dockerfiles to use debian:trixie-slim for glibc 2.38+ compatibility Fixed glibc version mismatch between rust:latest builder (glibc 2.38+) and debian:bookworm-slim runtime (glibc 2.36). This was causing: - ./companies: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.38 not found - ./payments: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.38 not found - Similar errors for users service Updated all 19 service Dockerfiles + Dockerfile.template to use debian:trixie-slim which includes glibc 2.38+. --- Dockerfile.template | 2 +- apps/catering_services/Dockerfile | 2 +- apps/companies/Dockerfile | 2 +- apps/cron/Dockerfile | 2 +- apps/customers/Dockerfile | 2 +- apps/developers/Dockerfile | 2 +- apps/employees/Dockerfile | 2 +- apps/fitness_trainers/Dockerfile | 2 +- apps/gateway/Dockerfile | 2 +- apps/graphic_designers/Dockerfile | 2 +- apps/job_seekers/Dockerfile | 2 +- apps/makeup_artists/Dockerfile | 2 +- apps/payments/Dockerfile | 2 +- apps/photographers/Dockerfile | 2 +- apps/social_media_managers/Dockerfile | 2 +- apps/tutors/Dockerfile | 2 +- apps/ugc_content_creators/Dockerfile | 2 +- apps/users/Dockerfile | 2 +- apps/video_editors/Dockerfile | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Dockerfile.template b/Dockerfile.template index df2d37e..d5d1665 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -18,7 +18,7 @@ COPY apps ./apps RUN cargo build --release --bin ${BIN_NAME} # Runtime stage -FROM debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime # Install runtime dependencies RUN apt-get update && apt-get install -y \ diff --git a/apps/catering_services/Dockerfile b/apps/catering_services/Dockerfile index 570cbbe..acbdead 100644 --- a/apps/catering_services/Dockerfile +++ b/apps/catering_services/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin catering_services -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/companies/Dockerfile b/apps/companies/Dockerfile index da287d2..8c2a8ed 100644 --- a/apps/companies/Dockerfile +++ b/apps/companies/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin companies -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/cron/Dockerfile b/apps/cron/Dockerfile index 93a29cd..7e8e179 100644 --- a/apps/cron/Dockerfile +++ b/apps/cron/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin cron -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/customers/Dockerfile b/apps/customers/Dockerfile index 20dd572..a3e27be 100644 --- a/apps/customers/Dockerfile +++ b/apps/customers/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin customers -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/developers/Dockerfile b/apps/developers/Dockerfile index ec39515..cbcbd3b 100644 --- a/apps/developers/Dockerfile +++ b/apps/developers/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin developers -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/employees/Dockerfile b/apps/employees/Dockerfile index 22b99ca..722e655 100644 --- a/apps/employees/Dockerfile +++ b/apps/employees/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin employees -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/fitness_trainers/Dockerfile b/apps/fitness_trainers/Dockerfile index 40a936d..6ede508 100644 --- a/apps/fitness_trainers/Dockerfile +++ b/apps/fitness_trainers/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin fitness_trainers -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/gateway/Dockerfile b/apps/gateway/Dockerfile index 7a13570..ba508f5 100644 --- a/apps/gateway/Dockerfile +++ b/apps/gateway/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin gateway -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/graphic_designers/Dockerfile b/apps/graphic_designers/Dockerfile index fc7faf5..730070f 100644 --- a/apps/graphic_designers/Dockerfile +++ b/apps/graphic_designers/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin graphic_designers -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/job_seekers/Dockerfile b/apps/job_seekers/Dockerfile index db6ca93..dc03e45 100644 --- a/apps/job_seekers/Dockerfile +++ b/apps/job_seekers/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin job_seekers -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/makeup_artists/Dockerfile b/apps/makeup_artists/Dockerfile index f9cd75b..288a8f8 100644 --- a/apps/makeup_artists/Dockerfile +++ b/apps/makeup_artists/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin makeup_artists -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/payments/Dockerfile b/apps/payments/Dockerfile index 226a3b9..39c6f9d 100644 --- a/apps/payments/Dockerfile +++ b/apps/payments/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin payments -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/photographers/Dockerfile b/apps/photographers/Dockerfile index e31c3e7..548deec 100644 --- a/apps/photographers/Dockerfile +++ b/apps/photographers/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin photographers -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/social_media_managers/Dockerfile b/apps/social_media_managers/Dockerfile index 0606a06..8232de7 100644 --- a/apps/social_media_managers/Dockerfile +++ b/apps/social_media_managers/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin social_media_managers -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/tutors/Dockerfile b/apps/tutors/Dockerfile index 8906777..fc0441d 100644 --- a/apps/tutors/Dockerfile +++ b/apps/tutors/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin tutors -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/ugc_content_creators/Dockerfile b/apps/ugc_content_creators/Dockerfile index a1e598b..1e8a8b0 100644 --- a/apps/ugc_content_creators/Dockerfile +++ b/apps/ugc_content_creators/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin ugc_content_creators -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/users/Dockerfile b/apps/users/Dockerfile index 9bea215..a8c2889 100644 --- a/apps/users/Dockerfile +++ b/apps/users/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin users -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \ diff --git a/apps/video_editors/Dockerfile b/apps/video_editors/Dockerfile index deff729..95bf5dd 100644 --- a/apps/video_editors/Dockerfile +++ b/apps/video_editors/Dockerfile @@ -14,7 +14,7 @@ COPY apps ./apps ENV CARGO_BUILD_JOBS=2 RUN cargo build --release --bin video_editors -FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime +FROM debian:trixie-slim AS runtime RUN apt-get update && apt-get install -y \ ca-certificates \