Archived
1

Initial commit

This commit is contained in:
2019-02-22 09:13:02 +04:00
commit cb403bf2f3
3 changed files with 57 additions and 0 deletions

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM alpine as builder
ENV TDLIB_VERSION=1.3.0
RUN apk update && apk add gperf alpine-sdk openssl-dev git cmake zlib-dev
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 alpine
LABEL maintainer="vladimir@hodakov.me"
RUN apk update && apk add --no-cache gperf openssl-dev git cmake zlib-dev
COPY --from=builder /usr/local/lib/libtd* /usr/local/lib/