Archived
1

Move to Ubuntu base image due to musl-related build errors

This commit is contained in:
Vladimir Hodakov 2019-10-08 02:34:07 +04:00
parent b6fa855dff
commit 239db8cc16
Signed by: Vladimir Hodakov
GPG Key ID: 673980B6882F82C6

View File

@ -1,8 +1,8 @@
FROM alpine as builder FROM ubuntu as builder
ENV TDLIB_VERSION=1.5.0 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/ WORKDIR /tmp/_build_tdlib/
@ -16,11 +16,13 @@ RUN cmake --build .
RUN make install RUN make install
RUN rm -rf /tmp/_build_tdlib/ RUN rm -rf /tmp/_build_tdlib/
FROM alpine FROM ubuntu
LABEL maintainer="vladimir@hodakov.me" 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/include/td /usr/local/include/td
COPY --from=builder /usr/local/lib/libtd* /usr/local/lib/ COPY --from=builder /usr/local/lib/libtd* /usr/local/lib/