Archived
1
This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
tdlib/Dockerfile

29 lines
778 B
Docker
Raw Permalink Normal View History

FROM ubuntu as builder
2019-02-22 09:13:02 +04:00
2019-10-07 14:41:51 +04:00
ENV TDLIB_VERSION=1.5.0
2019-02-22 09:13:02 +04:00
RUN apt-get update && apt-get -y install gperf cmake git zlib1g-dev linux-headers-generic g++ libssl-dev
2019-02-22 09:13:02 +04:00
WORKDIR /tmp/_build_tdlib/
RUN git clone https://github.com/tdlib/td.git /tmp/_build_tdlib/
RUN git checkout v${TDLIB_VERSION}
RUN mkdir build
WORKDIR /tmp/_build_tdlib/build/
RUN cmake -DCMAKE_BUILD_TYPE=Release ..
RUN cmake --build .
RUN make install
RUN rm -rf /tmp/_build_tdlib/
FROM ubuntu
2019-02-22 09:13:02 +04:00
LABEL maintainer="vladimir@hodakov.me"
RUN apt-get update && apt-get -y install libssl-dev cmake zlib1g-dev g++
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt/lists/*
2019-02-22 09:13:02 +04:00
2019-03-02 16:34:58 +04:00
COPY --from=builder /usr/local/include/td /usr/local/include/td
2019-02-22 09:13:02 +04:00
COPY --from=builder /usr/local/lib/libtd* /usr/local/lib/