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}