Browse Source

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

master
Vladimir Hodakov 10 months ago
parent
commit
239db8cc16
Signed by: fat0troll <vladimir@hodakov.me> GPG Key ID: 673980B6882F82C6
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      Dockerfile

+ 6
- 4
Dockerfile View File

@@ -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/

Loading…
Cancel
Save