diff --git a/Dockerfile b/Dockerfile index c233cd3..f42d410 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM alpine as builder +FROM ubuntu as builder ENV TDLIB_VERSION=1.5.0 -RUN apk update && apk add gperf alpine-sdk openssl-dev git cmake zlib-dev linux-headers +RUN apt-get update && apt-get -y install gperf cmake git zlib1g-dev linux-headers-generic g++ libssl-dev WORKDIR /tmp/_build_tdlib/ @@ -16,11 +16,13 @@ RUN cmake --build . RUN make install RUN rm -rf /tmp/_build_tdlib/ -FROM alpine +FROM ubuntu LABEL maintainer="vladimir@hodakov.me" -RUN apk update && apk add --no-cache gperf openssl-dev git cmake zlib-dev +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/* COPY --from=builder /usr/local/include/td /usr/local/include/td COPY --from=builder /usr/local/lib/libtd* /usr/local/lib/