summaryrefslogtreecommitdiff
path: root/Dockerfile_test
diff options
context:
space:
mode:
authorOleg Morozenkov <o.morozenkov@corp.mail.ru>2023-05-11 00:40:28 +0400
committerOleg Morozenkov <o.morozenkov@corp.mail.ru>2023-05-11 00:40:28 +0400
commitca324076529cbc698ccd2ea3f1091a0e3ac99842 (patch)
tree9debcfb41d9d408688329c8a4613b1b3c51c450c /Dockerfile_test
parentfb7535a34947eac61419beaf7ba7937bff50c182 (diff)
Up Dockerfile debian
Diffstat (limited to 'Dockerfile_test')
-rw-r--r--Dockerfile_test8
1 files changed, 3 insertions, 5 deletions
diff --git a/Dockerfile_test b/Dockerfile_test
index 9e37736..7254706 100644
--- a/Dockerfile_test
+++ b/Dockerfile_test
@@ -1,4 +1,4 @@
-FROM ubuntu:18.04
+FROM ubuntu:latest
MAINTAINER Oleg Morozenkov <m@oleg.rocks>
RUN apt-get -qq update && \
@@ -16,8 +16,8 @@ RUN apt-get -qq update && \
make \
python-dev \
wget \
- zlib1g-dev
-
+ zlib1g-dev && \
+ rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/tgbot-cpp
COPY include include
@@ -29,7 +29,6 @@ RUN cmake -DENABLE_TESTS=ON . && \
make -j$(nproc) && \
make install
-
COPY samples samples
WORKDIR /usr/src/tgbot-cpp/samples/echobot
@@ -49,7 +48,6 @@ RUN rm -rf samples/echobot-submodule/tgbot-cpp/
COPY include samples/echobot-submodule/tgbot-cpp/include
COPY src samples/echobot-submodule/tgbot-cpp/src
COPY CMakeLists.txt samples/echobot-submodule/tgbot-cpp/
-
WORKDIR /usr/src/tgbot-cpp/samples/echobot-submodule
RUN rm -rf CMakeCache.txt CMakeFiles/ && \
cmake . && make -j$(nproc)