Skip to content

Commit

Permalink
Merge pull request #32
Browse files Browse the repository at this point in the history
merge refactor-77af743 with master
  • Loading branch information
sssomeshhh authored Jun 24, 2022
2 parents 77af743 + 4bdbc51 commit a9ccc8c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
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 && \
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 .. && \
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 && \
Expand All @@ -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*
Expand Down

0 comments on commit a9ccc8c

Please sign in to comment.