Reduce RAM usage by main Dockerfile

This commit is contained in:
Bohdan Horbeshko 2026-09-24 10:43:43 -04:00
parent 58ba0198a3
commit b99a2bcc5f

View file

@ -1,6 +1,6 @@
FROM golang:1.24-bookworm AS base
RUN apt-get update && apt-get install -y libssl-dev cmake build-essential gperf libz-dev make git libomemo-c-dev
RUN apt-get update && apt-get install -y libssl-dev cmake build-essential gperf libz-dev make git libomemo-c-dev php php-fpm
FROM base AS tdlib
@ -10,6 +10,10 @@ RUN git clone https://github.com/tdlib/td /src/
RUN git -C /src/ checkout "${TD_COMMIT}"
WORKDIR /build/
RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/compiled/ /src/
RUN cmake --build . --target prepare_cross_compiling ${MAKEOPTS}
WORKDIR /src/
RUN php SplitSource.php
WORKDIR /build/
RUN cmake --build . ${MAKEOPTS}
RUN make install