formatting

This commit is contained in:
tooomm 2026-07-19 12:58:01 +02:00
parent 304dbcd9fa
commit 20159e5550

View file

@ -3,47 +3,53 @@ FROM ubuntu:26.04 AS build
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update \
build-essential \ && apt-get install -y --no-install-recommends \
ccache \ build-essential \
cmake \ ccache \
ninja-build \ cmake \
file \ ninja-build \
g++ \ file \
git \ g++ \
libmariadb-dev-compat \ git \
libprotobuf-dev \ libmariadb-dev-compat \
libqt6sql6-mysql \ libprotobuf-dev \
qt6-websockets-dev \ libqt6sql6-mysql \
protobuf-compiler \ qt6-websockets-dev \
qt6-tools-dev \ protobuf-compiler \
qt6-tools-dev-tools qt6-tools-dev \
qt6-tools-dev-tools
ENV CCACHE_DIR=/root/.ccache ENV CCACHE_DIR=/root/.ccache
ENV CCACHE_MAXSIZE=550M ENV CCACHE_MAXSIZE=550M
WORKDIR /src WORKDIR /src
COPY . . COPY . .
RUN --mount=type=cache,target=/root/.ccache \ RUN --mount=type=cache,id=ccache,target=/root/.ccache \
cmake -S . -B build \ cmake \
-G Ninja \ -S . \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \ -B build \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ -G Ninja \
-DWITH_SERVER=1 \ -DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DWITH_CLIENT=0 \ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DWITH_ORACLE=0 \ -DWITH_SERVER=1 \
&& cmake --build build \ -DWITH_CLIENT=0 \
&& cmake --install build -DWITH_ORACLE=0 \
&& cmake --build build \
RUN ccache --show-stats && cmake --install build \
&& ccache --show-config \
&& ccache --show-stats
# -------- Runtime Stage (clean) -------- # -------- Runtime Stage (clean) --------
FROM ubuntu:26.04 FROM ubuntu:26.04
RUN apt-get update && apt-get install -y --no-install-recommends \ ARG DEBIAN_FRONTEND=noninteractive
libprotobuf32t64 \
libqt6sql6-mysql \ RUN apt-get update \
libqt6websockets6 \ && apt-get install -y --no-install-recommends \
libprotobuf32t64 \
libqt6sql6-mysql \
libqt6websockets6 \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*