formatting

This commit is contained in:
tooomm 2026-05-16 12:19:05 +02:00 committed by GitHub
parent 568825fd76
commit 40f47500d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,17 +4,18 @@ FROM debian:13 AS build
ARG DEBIAN_FRONTEND=noninteractive
# Install build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
cmake \
g++ \
libmariadb-dev-compat \
libprotobuf-dev \
libqt6sql6-mysql \
ninja-build \
protobuf-compiler \
qt6-tools-dev \
qt6-tools-dev-tools \
qt6-websockets-dev \
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cmake \
g++ \
libmariadb-dev-compat \
libprotobuf-dev \
libqt6sql6-mysql \
ninja-build \
protobuf-compiler \
qt6-tools-dev \
qt6-tools-dev-tools \
qt6-websockets-dev \
&& rm -rf /var/lib/apt/lists/*
# Copy repo source not excluded in .dockerignore
@ -23,11 +24,11 @@ COPY . .
# Configure CMake
RUN cmake -S . -B build -G Ninja \
-DWITH_SERVER=1 -DWITH_CLIENT=0 -DWITH_ORACLE=0
-DWITH_SERVER=1 -DWITH_CLIENT=0 -DWITH_ORACLE=0
# Build and install Servatrice
RUN cmake --build build --parallel $(nproc) \
&& cmake --install build
&& cmake --install build
# -------- Runtime Stage (clean) --------
@ -35,10 +36,11 @@ FROM debian:13-slim
# Install runtime dependencies
# Is libprotobuf-lite32t64 enough?
RUN apt-get update && apt-get install -y --no-install-recommends \
libprotobuf32t64 \
libqt6sql6-mysql \
libqt6websockets6 \
RUN apt-get update
&& apt-get install -y --no-install-recommends \
libprotobuf32t64 \
libqt6sql6-mysql \
libqt6websockets6 \
&& rm -rf /var/lib/apt/lists/*
# Copy only resulting binaries from Build Stage