summaryrefslogtreecommitdiff
path: root/samples/received-text-processing
diff options
context:
space:
mode:
authorllnulldisk <48621230+llnulldisk@users.noreply.github.com>2022-09-30 17:46:58 +0200
committerllnulldisk <48621230+llnulldisk@users.noreply.github.com>2022-09-30 17:46:58 +0200
commit70b02c460b55f6a6722a852704ee7d916c48ed47 (patch)
tree6b9134d703edcc2e173ad3218daac1b3ecd4e6a1 /samples/received-text-processing
parentd9dfa73edda127580e0961c89d8fafa56735f672 (diff)
Update docker files and CMakeLists
Diffstat (limited to 'samples/received-text-processing')
-rw-r--r--samples/received-text-processing/CMakeLists.txt6
-rw-r--r--samples/received-text-processing/Dockerfile8
2 files changed, 12 insertions, 2 deletions
diff --git a/samples/received-text-processing/CMakeLists.txt b/samples/received-text-processing/CMakeLists.txt
index 2e351d1..d1f08d3 100644
--- a/samples/received-text-processing/CMakeLists.txt
+++ b/samples/received-text-processing/CMakeLists.txt
@@ -1,7 +1,9 @@
-cmake_minimum_required(VERSION 2.8.4)
+cmake_minimum_required(VERSION 3.13.4)
project(received-text-processing)
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
+set(CMAKE_CXX_STANDARD 14)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set(Boost_USE_MULTITHREADED ON)
find_package(Threads REQUIRED)
diff --git a/samples/received-text-processing/Dockerfile b/samples/received-text-processing/Dockerfile
new file mode 100644
index 0000000..004c09f
--- /dev/null
+++ b/samples/received-text-processing/Dockerfile
@@ -0,0 +1,8 @@
+FROM reo7sp/tgbot-cpp
+MAINTAINER Oleg Morozenkov <a@reo7sp.ru>
+
+WORKDIR /usr/src/received-text-processing
+COPY . .
+RUN cmake .
+RUN make -j4
+CMD ./received-text-processing