mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-16 20:17:45 -07:00
formatting
This commit is contained in:
parent
568825fd76
commit
40f47500d9
1 changed files with 19 additions and 17 deletions
36
Dockerfile
36
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue