Pre-built TDLib useful for building in Docker software which uses it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
778 B

  1. FROM ubuntu as builder
  3. RUN apt-get update && apt-get -y install gperf cmake git zlib1g-dev linux-headers-generic g++ libssl-dev
  4. WORKDIR /tmp/_build_tdlib/
  5. RUN git clone /tmp/_build_tdlib/
  6. RUN git checkout v${TDLIB_VERSION}
  7. RUN mkdir build
  8. WORKDIR /tmp/_build_tdlib/build/
  9. RUN cmake -DCMAKE_BUILD_TYPE=Release ..
  10. RUN cmake --build .
  11. RUN make install
  12. RUN rm -rf /tmp/_build_tdlib/
  13. FROM ubuntu
  14. LABEL maintainer=""
  15. RUN apt-get update && apt-get -y install libssl-dev cmake zlib1g-dev g++
  16. RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt/lists/*
  17. COPY --from=builder /usr/local/include/td /usr/local/include/td
  18. COPY --from=builder /usr/local/lib/libtd* /usr/local/lib/