Skip to content

Commit

Permalink
fix: downgrade GCC from 13.2 to 12.3 for C++
Browse files Browse the repository at this point in the history
  • Loading branch information
theoludwig committed Sep 16, 2023
1 parent d8ed31d commit d7d5f9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/docker/cpp/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit d7d5f9a

Please sign in to comment.