diff --git a/Dockerfile b/Dockerfile index 967dc6d9..a13967cc 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