diff options
author | Oleg Morozenkov <omorozenkov@gmail.com> | 2015-11-16 21:48:05 +0300 |
---|---|---|
committer | Oleg Morozenkov <omorozenkov@gmail.com> | 2015-11-16 21:48:05 +0300 |
commit | a9bfb2748cc3cb73950723a2be8a5b643c191fe6 (patch) | |
tree | 24e90faff26ff9c718a1db9eb33750308cc5f2bc /Dockerfile | |
parent | c0ecf548e9643102ae80e44d3cff59b0ed2a539b (diff) |
Update Dockerfile
Diffstat (limited to 'Dockerfile')
-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 |