FROM debian:stretch MAINTAINER Oleg Morozenkov RUN apt-get -qq update && \ apt-get -qq install -y g++ make binutils cmake libssl-dev libboost-system-dev libboost-test-dev libcurl4-openssl-dev WORKDIR /usr/src/tgbot-cpp COPY include include COPY src src COPY test test COPY CMakeLists.txt ./ RUN cmake -DENABLE_TESTS=ON . && \ make -j4 && \ make install COPY samples samples WORKDIR /usr/src/tgbot-cpp/samples/echobot RUN rm -rf CMakeCache.txt CMakeFiles/ && \ cmake . && make -j4 WORKDIR /usr/src/tgbot-cpp/samples/echobot-curl-client RUN rm -rf CMakeCache.txt CMakeFiles/ && \ cmake . && make -j4 WORKDIR /usr/src/tgbot-cpp/samples/echobot-webhook-server RUN rm -rf CMakeCache.txt CMakeFiles/ && \ cmake . && make -j4 WORKDIR /usr/src/tgbot-cpp/samples/inline-keyboard RUN rm -rf CMakeCache.txt CMakeFiles/ && \ cmake . && make -j4 WORKDIR /usr/src/tgbot-cpp/samples/photo RUN rm -rf CMakeCache.txt CMakeFiles/ && \ cmake . && make -j4 WORKDIR /usr/src/tgbot-cpp ENV CTEST_OUTPUT_ON_FAILURE=1 CMD make test