Update Alpine images

This commit is contained in:
Mizux Seiha
2020-03-30 12:52:22 +02:00
parent 2296117348
commit 2cb3defbe4
5 changed files with 131 additions and 94 deletions

View File

@@ -0,0 +1,29 @@
FROM ortools:alpine_swig AS env
RUN apk add --no-cache python3-dev py3-pip
FROM env AS devel
WORKDIR /home/lib
COPY . .
FROM devel AS build
RUN cmake -S. -Bbuild -DBUILD_DEPS=ON -DBUILD_PYTHON=ON
RUN cmake --build build --target all -v
RUN cmake --build build --target install
FROM build AS test
RUN cmake --build build --target test
FROM env AS install_env
COPY --from=build /usr/local /usr/local/
FROM install_env AS install_devel
WORKDIR /home/sample
COPY ci/sample .
FROM install_devel AS install_build
RUN cmake -S. -Bbuild -DBUILD_DOTNET=ON
RUN cmake --build build --target all -v
RUN cmake --build build --target install
FROM install_build AS install_test
RUN cmake --build build --target test