From db9ea535a093737ae0d4a94d74516c16bd9abe59 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Mon, 31 Jul 2023 11:12:53 +0200 Subject: [PATCH] feat: use CMake in Dockerfile and alpine bump --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 967dc6d95..a13967cc1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.10 as build +FROM alpine:3.18 as build MAINTAINER Apiary "sre@apiary.io" WORKDIR /usr/src/drafter @@ -9,12 +9,12 @@ ADD packages packages WORKDIR /tmp/drafter RUN apk add --no-cache cmake make g++ -RUN cmake /usr/src/drafter +RUN cmake -S "." -B "build" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -RUN make drafter -RUN make install +RUN cmake --build build +RUN cmake --install build -FROM alpine:3.10 +FROM alpine:3.18 RUN apk add --no-cache gcc COPY --from=build /usr/local/bin/drafter /usr/local/bin/drafter