mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-05 20:39:59 -08:00
* Update Dockerfile to non-outdated Ubuntu version 1. Updated image to jammy as it is still in it's LTS window. Didn't go with 24.04/Noble as it released after latest version of cockatrice released. 2. Had to add new ARG 3. No qt5-default library, so replaced with qt5-qmake * Update Dockerfile Upped from Jammy -> Noble Upped from Qt5 -> Tt6 * Update Dockerfile - new port Added Port 4748 for new features * Update Dockerfile Changed Noble - > 24.04 * indentation * remove unused dependencies --------- Co-authored-by: tooomm <tooomm@users.noreply.github.com>
32 lines
585 B
Docker
32 lines
585 B
Docker
FROM ubuntu:24.04
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && apt-get install -y\
|
|
build-essential \
|
|
cmake \
|
|
file \
|
|
g++ \
|
|
git \
|
|
libmariadb-dev-compat \
|
|
libprotobuf-dev \
|
|
libqt6sql6-mysql \
|
|
qt6-websockets-dev \
|
|
protobuf-compiler \
|
|
qt6-tools-dev \
|
|
qt6-tools-dev-tools
|
|
|
|
COPY . /home/servatrice/code/
|
|
WORKDIR /home/servatrice/code
|
|
|
|
WORKDIR build
|
|
RUN cmake .. -DWITH_SERVER=1 -DWITH_CLIENT=0 -DWITH_ORACLE=0 -DWITH_DBCONVERTER=0 &&\
|
|
make &&\
|
|
make install
|
|
|
|
WORKDIR /home/servatrice
|
|
|
|
EXPOSE 4747 4748
|
|
|
|
ENTRYPOINT [ "servatrice", "--log-to-console" ]
|