mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
build(deps): update latest
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
FROM gcc:12.2.0
|
||||
FROM gcc:12.2.0 AS builder
|
||||
WORKDIR /usr/src/application
|
||||
COPY ./ ./
|
||||
RUN gcc ./*.c* -o solution -Wall -Wextra -Wfloat-equal -Wundef -Werror -std=c17 -pedantic -pedantic-errors -O3
|
||||
|
||||
WORKDIR /usr/app
|
||||
COPY ./ /usr/app
|
||||
RUN gcc ./*.c* -o solution.exe -Wall -Wextra -Wfloat-equal -Wundef -Werror -std=c17 -pedantic -pedantic-errors -O3
|
||||
|
||||
CMD ["./solution.exe"]
|
||||
FROM gcr.io/distroless/cc-debian11:latest AS runner
|
||||
WORKDIR /usr/src/application
|
||||
COPY --from=builder /usr/src/application/solution ./
|
||||
CMD ["./solution"]
|
||||
|
Reference in New Issue
Block a user