Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

feat: use CMake in Dockerfile and alpine bump #798

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.10 as build
FROM alpine:3.18 as build
MAINTAINER Apiary "[email protected]"

WORKDIR /usr/src/drafter
Expand All @@ -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
Expand Down