mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-23 07:03:54 -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
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
# Install build dependencies
|
# Install build dependencies
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update \
|
||||||
cmake \
|
&& apt-get install -y --no-install-recommends \
|
||||||
g++ \
|
cmake \
|
||||||
libmariadb-dev-compat \
|
g++ \
|
||||||
libprotobuf-dev \
|
libmariadb-dev-compat \
|
||||||
libqt6sql6-mysql \
|
libprotobuf-dev \
|
||||||
ninja-build \
|
libqt6sql6-mysql \
|
||||||
protobuf-compiler \
|
ninja-build \
|
||||||
qt6-tools-dev \
|
protobuf-compiler \
|
||||||
qt6-tools-dev-tools \
|
qt6-tools-dev \
|
||||||
qt6-websockets-dev \
|
qt6-tools-dev-tools \
|
||||||
|
qt6-websockets-dev \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy repo source not excluded in .dockerignore
|
# Copy repo source not excluded in .dockerignore
|
||||||
|
|
@ -23,11 +24,11 @@ COPY . .
|
||||||
|
|
||||||
# Configure CMake
|
# Configure CMake
|
||||||
RUN cmake -S . -B build -G Ninja \
|
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
|
# Build and install Servatrice
|
||||||
RUN cmake --build build --parallel $(nproc) \
|
RUN cmake --build build --parallel $(nproc) \
|
||||||
&& cmake --install build
|
&& cmake --install build
|
||||||
|
|
||||||
|
|
||||||
# -------- Runtime Stage (clean) --------
|
# -------- Runtime Stage (clean) --------
|
||||||
|
|
@ -35,10 +36,11 @@ FROM debian:13-slim
|
||||||
|
|
||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
# Is libprotobuf-lite32t64 enough?
|
# Is libprotobuf-lite32t64 enough?
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update
|
||||||
libprotobuf32t64 \
|
&& apt-get install -y --no-install-recommends \
|
||||||
libqt6sql6-mysql \
|
libprotobuf32t64 \
|
||||||
libqt6websockets6 \
|
libqt6sql6-mysql \
|
||||||
|
libqt6websockets6 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy only resulting binaries from Build Stage
|
# Copy only resulting binaries from Build Stage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue