forked from cory/tildefriends
Cory McWilliams
79022e1e1f
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3621 ed5197a5-7fde-0310-b194-c3ffbd925b24
18 lines
333 B
Docker
18 lines
333 B
Docker
FROM alpine:3.7 AS base
|
|
WORKDIR /src
|
|
RUN apk --update add alpine-sdk cmake bash
|
|
COPY . ./
|
|
WORKDIR /src/build
|
|
|
|
# Debug
|
|
FROM base
|
|
RUN cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=On
|
|
RUN cmake --build .
|
|
RUN ctest -VV
|
|
|
|
# Release
|
|
FROM base
|
|
RUN cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=On
|
|
RUN cmake --build .
|
|
RUN ctest -VV
|