diff --git a/Dockerfile b/Dockerfile index 8b79aab75..c8ab56b18 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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