summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorOleg Morozenkov <omorozenkov@gmail.com>2015-11-16 21:48:05 +0300
committerOleg Morozenkov <omorozenkov@gmail.com>2015-11-16 21:48:05 +0300
commita9bfb2748cc3cb73950723a2be8a5b643c191fe6 (patch)
tree24e90faff26ff9c718a1db9eb33750308cc5f2bc /Dockerfile
parentc0ecf548e9643102ae80e44d3cff59b0ed2a539b (diff)
Update Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files changed, 8 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index 278867b..82dc9c6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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