1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-12-08 00:45:29 +01:00

fix: downgrade GCC from 13.2 to 12.3 for C++

This commit is contained in:
Théo LUDWIG 2023-09-16 16:45:21 +02:00
parent d8ed31d3e8
commit d7d5f9a5ac
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B

View File

@ -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"]