2019-05-16 00:18:27 +02:00
|
|
|
# Build time
|
|
|
|
FROM ubuntu:xenial as build
|
2019-04-30 04:29:27 +02:00
|
|
|
|
2019-05-16 00:18:27 +02:00
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get -y install wget
|
2019-04-30 04:29:27 +02:00
|
|
|
RUN mkdir -p /tmp/cmake
|
|
|
|
WORKDIR /tmp/cmake
|
|
|
|
RUN wget https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-Linux-x86_64.tar.gz
|
|
|
|
RUN tar zxf cmake-3.14.0-Linux-x86_64.tar.gz
|
|
|
|
|
2019-05-16 00:18:27 +02:00
|
|
|
RUN apt-get -y install g++
|
|
|
|
RUN apt-get -y install libssl-dev
|
|
|
|
RUN apt-get -y install libz-dev
|
|
|
|
RUN apt-get -y install make
|
|
|
|
RUN apt-get -y install python
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2019-04-30 04:29:27 +02:00
|
|
|
ARG CMAKE_BIN_PATH=/tmp/cmake/cmake-3.14.0-Linux-x86_64/bin
|
|
|
|
ENV PATH="${CMAKE_BIN_PATH}:${PATH}"
|
|
|
|
|
2019-05-14 01:51:58 +02:00
|
|
|
# RUN ["make"]
|
2019-05-16 00:18:27 +02:00
|
|
|
RUN ["make", "test"]
|