summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 3daf8b1f6c5c451e8016bbe2b1ff215b31439916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM debian:latest
MAINTAINER Oleg Morozenkov

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 test test
COPY CMakeLists.txt ./
#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 && \
RUN \
	cmake . && \
	make -j4 && \
	#./TgBot_test && \
	make install  && \
	rm -rf /tmp/tgbot-cpp