Move to Ubuntu base image due to musl-related build errors
This commit is contained in:
parent
b6fa855dff
commit
239db8cc16
10
Dockerfile
10
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/
|
||||
|
Reference in New Issue
Block a user