From 239db8cc16db10c7c13b68209a88d7e705d4bf35 Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Tue, 8 Oct 2019 02:34:07 +0400 Subject: [PATCH] Move to Ubuntu base image due to musl-related build errors --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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/