mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2024-12-08 00:45:29 +01:00
10 lines
341 B
Docker
10 lines
341 B
Docker
FROM gcc:12.4.0-bookworm AS builder
|
|
WORKDIR /usr/src/application
|
|
COPY ./ ./
|
|
RUN gcc ./*.c* -o solution -Wall -Wextra -Wfloat-equal -Wundef -Werror -std=c17 -pedantic -pedantic-errors -O3
|
|
|
|
FROM gcr.io/distroless/cc-debian12:latest AS runner
|
|
WORKDIR /usr/src/application
|
|
COPY --from=builder /usr/src/application/solution ./
|
|
CMD ["./solution"]
|