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+.
This commit is contained in:
parent
3e557e54e8
commit
219960399b
19 changed files with 19 additions and 19 deletions
|
|
@ -18,7 +18,7 @@ COPY apps ./apps
|
||||||
RUN cargo build --release --bin ${BIN_NAME}
|
RUN cargo build --release --bin ${BIN_NAME}
|
||||||
|
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
FROM debian:bookworm-slim AS runtime
|
FROM debian:trixie-slim AS runtime
|
||||||
|
|
||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin catering_services
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin companies
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin cron
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin customers
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin developers
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin employees
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin fitness_trainers
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin gateway
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin graphic_designers
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin job_seekers
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin makeup_artists
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin payments
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin photographers
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin social_media_managers
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin tutors
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin ugc_content_creators
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin users
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ COPY apps ./apps
|
||||||
ENV CARGO_BUILD_JOBS=2
|
ENV CARGO_BUILD_JOBS=2
|
||||||
RUN cargo build --release --bin video_editors
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue