From 2dc97433703d9e8e3083aa06e1be9ccb757a2d57 Mon Sep 17 00:00:00 2001 From: SomesH S Date: Fri, 24 Jun 2022 14:42:10 +0530 Subject: [PATCH 1/3] switch to ubuntu:focal in Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9732ac8..4ca5680 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM ubuntu:latest as base +FROM ubuntu:focal as base ENV DEBIAN_FRONTEND='noninteractive' RUN apt-get update && apt-get upgrade -y && \ apt-get install -y aria2 curl ffmpeg jq libc++-dev locales nano pv python3 python3-pip python3-lxml tzdata && \ rm -rf /var/lib/apt/lists/* RUN locale-gen en_US.UTF-8 -FROM ubuntu:latest as api +FROM ubuntu:focal as api ENV DEBIAN_FRONTEND='noninteractive' RUN apt-get update && apt-get upgrade -y && \ apt-get install -y git gperf make cmake clang-10 libc++-dev libc++abi-dev libssl-dev zlib1g-dev && \ @@ -18,7 +18,7 @@ RUN git clone --recursive https://github.com/tdlib/telegram-bot-api.git && cd te cmake --build . --target install -- -j $(nproc) && cd .. && \ ls -lh bin/telegram-bot-api* -FROM ubuntu:latest as mega +FROM ubuntu:focal as mega ENV DEBIAN_FRONTEND='noninteractive' RUN apt-get update && apt-get upgrade -y && \ apt-get install -y autoconf automake gcc g++ git libtool make python3 python3-dev python3-distutils python3-pip && \ From 3fddc0242db559e5943926a25d378c1671ee0a25 Mon Sep 17 00:00:00 2001 From: SomesH S Date: Fri, 24 Jun 2022 14:57:05 +0530 Subject: [PATCH 2/3] mega-sdk v3.9.10 -> v3.12.2 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4ca5680..83b733e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,7 @@ RUN apt-get update && apt-get upgrade -y && \ rm -rf /var/lib/apt/lists/* WORKDIR /root RUN git clone https://github.com/meganz/sdk.git mega-sdk/ && cd mega-sdk/ && \ - git checkout v3.9.10 && \ + git checkout v3.12.2 && \ ./autogen.sh && ./configure --disable-silent-rules --enable-python --with-sodium --disable-examples && \ make -j $(nproc) && cd bindings/python/ && python3 setup.py bdist_wheel && \ ls -lh dist/megasdk* From 4bdbc51325fcd4435f86e18d41f88ad92f17f2e2 Mon Sep 17 00:00:00 2001 From: SomesH S Date: Fri, 24 Jun 2022 15:34:28 +0530 Subject: [PATCH 3/3] update telegram-bot-api to v6.1 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 83b733e..d7b016d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN apt-get update && apt-get upgrade -y && \ rm -rf /var/lib/apt/lists/* WORKDIR /root RUN git clone --recursive https://github.com/tdlib/telegram-bot-api.git && cd telegram-bot-api && \ - git checkout e9587a0 && git submodule update && mkdir build && cd build && \ + git checkout 24ee05d && git submodule update && mkdir build && cd build && \ CXXFLAGS="-stdlib=libc++" CC=/usr/bin/clang-10 CXX=/usr/bin/clang++-10 \ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=.. .. && \ cmake --build . --target install -- -j $(nproc) && cd .. && \