From a117e1e3cb5dfa8baded1032877d8c8496a3fe42 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Thu, 6 Aug 2026 13:16:43 -0400 Subject: [PATCH] Reduce Dockerfile stages --- Dockerfile | 4 +--- staging.Dockerfile | 4 +--- tdlib.Dockerfile | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9f2bfe2..8e13b7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ FROM golang:1.24-bookworm AS base -RUN apt-get update -run 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 FROM base AS tdlib @@ -9,7 +8,6 @@ ARG TD_COMMIT ARG MAKEOPTS RUN git clone https://github.com/tdlib/td /src/ RUN git -C /src/ checkout "${TD_COMMIT}" -RUN mkdir build WORKDIR /build/ RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/compiled/ /src/ RUN cmake --build . ${MAKEOPTS} diff --git a/staging.Dockerfile b/staging.Dockerfile index 37608f8..5c9b855 100644 --- a/staging.Dockerfile +++ b/staging.Dockerfile @@ -1,7 +1,6 @@ FROM golang:1.24-bullseye AS base -RUN apt-get update -RUN apt-get install -y libssl-dev cmake build-essential gperf libz-dev make git php libsignal-protocol-c-dev +RUN apt-get update && apt-get install -y libssl-dev cmake build-essential gperf libz-dev make git php libsignal-protocol-c-dev FROM base AS tdlib @@ -9,7 +8,6 @@ ARG TD_COMMIT ARG MAKEOPTS RUN git clone https://github.com/tdlib/td /src/ RUN git -C /src/ checkout "${TD_COMMIT}" -RUN mkdir build WORKDIR /build/ RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/compiled/ /src/ RUN cmake --build . --target prepare_cross_compiling ${MAKEOPTS} diff --git a/tdlib.Dockerfile b/tdlib.Dockerfile index a058991..20fa9ca 100644 --- a/tdlib.Dockerfile +++ b/tdlib.Dockerfile @@ -1,7 +1,6 @@ FROM golang:1.24-bookworm AS base -RUN apt-get update -RUN apt-get install -y libssl-dev cmake build-essential gperf libz-dev make git php +RUN apt-get update && apt-get install -y libssl-dev cmake build-essential gperf libz-dev make git php FROM base AS tdlib @@ -9,7 +8,6 @@ ARG TD_COMMIT ARG MAKEOPTS RUN git clone https://github.com/tdlib/td /src/ RUN git -C /src/ checkout "${TD_COMMIT}" -RUN mkdir build WORKDIR /build/ RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/compiled/ /src/ RUN cmake --build . --target prepare_cross_compiling ${MAKEOPTS}