Verified Commit 239db8cc authored by Vladimir Hodakov's avatar Vladimir Hodakov 🔥
Browse files

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

parent b6fa855d
FROM alpine as builder
FROM ubuntu as builder
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=""
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/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment