From d7d5f9a5ac09c62993f57d1cc1325830eb0a42d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Sat, 16 Sep 2023 16:45:21 +0200 Subject: [PATCH] fix: downgrade GCC from 13.2 to 12.3 for C++ --- templates/docker/cpp/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/docker/cpp/Dockerfile b/templates/docker/cpp/Dockerfile index 94a7bca..14ed335 100644 --- a/templates/docker/cpp/Dockerfile +++ b/templates/docker/cpp/Dockerfile @@ -1,9 +1,9 @@ -FROM gcc:13.2.0-bookworm AS builder +FROM gcc:12.3.0-bullseye AS builder WORKDIR /usr/src/application COPY ./ ./ RUN g++ ./*.cpp* -o solution -Wall -Wextra -Wfloat-equal -Wundef -Werror -std=c++17 -pedantic -pedantic-errors -O3 -FROM gcr.io/distroless/cc-debian12:latest AS runner +FROM gcr.io/distroless/cc-debian11:latest AS runner WORKDIR /usr/src/application COPY --from=builder /usr/src/application/solution ./ CMD ["./solution"]