diff options
-rw-r--r-- | Dockerfile | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1,14 +1,16 @@ FROM debian:latest MAINTAINER Oleg Morozenkov -ENV REFRESHED_AT 2015-08-12 -RUN apt-get update && apt-get install -y g++ make binutils cmake libssl-dev libboost-system-dev libboost-iostreams-dev libboost-test-dev +RUN apt-get update && \ + apt-get install -y g++ make binutils cmake libssl-dev libboost-system-dev libboost-iostreams-dev libboost-test-dev WORKDIR /tmp/tgbot-cpp COPY include include COPY src src COPY CMakeLists.txt ./ -RUN cmake . -RUN make -j4 -RUN make install -RUN rm -rf /tmp/tgbot-cpp
\ No newline at end of file +RUN sed -i 's/option(ENABLE_TESTS "Set to ON to enable building of tests" OFF)/option(ENABLE_TESTS "Set to ON to enable building of tests" ON)/g' CMakeLists.txt && \ + cmake . && \ + make -j4 && \ + ./TgBot_test && \ + make install && \ + rm -rf /tmp/tgbot-cpp |