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:
parent
d8ed31d3e8
commit
d7d5f9a5ac
@ -1,9 +1,9 @@
|
|||||||
FROM gcc:13.2.0-bookworm AS builder
|
FROM gcc:12.3.0-bullseye AS builder
|
||||||
WORKDIR /usr/src/application
|
WORKDIR /usr/src/application
|
||||||
COPY ./ ./
|
COPY ./ ./
|
||||||
RUN g++ ./*.cpp* -o solution -Wall -Wextra -Wfloat-equal -Wundef -Werror -std=c++17 -pedantic -pedantic-errors -O3
|
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
|
WORKDIR /usr/src/application
|
||||||
COPY --from=builder /usr/src/application/solution ./
|
COPY --from=builder /usr/src/application/solution ./
|
||||||
CMD ["./solution"]
|
CMD ["./solution"]
|
||||||
|
Loading…
Reference in New Issue
Block a user