mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-10-07 16:51:47 +00:00
Reduce RAM usage by main Dockerfile
This commit is contained in:
parent
58ba0198a3
commit
b99a2bcc5f
1 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
FROM golang:1.24-bookworm AS base
|
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
|
FROM base AS tdlib
|
||||||
|
|
||||||
|
|
@ -10,6 +10,10 @@ RUN git clone https://github.com/tdlib/td /src/
|
||||||
RUN git -C /src/ checkout "${TD_COMMIT}"
|
RUN git -C /src/ checkout "${TD_COMMIT}"
|
||||||
WORKDIR /build/
|
WORKDIR /build/
|
||||||
RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/compiled/ /src/
|
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 cmake --build . ${MAKEOPTS}
|
||||||
RUN make install
|
RUN make install
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue