Update Dockerfile Ubuntu version to newest LTS (#5108)

* 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>
This commit is contained in:
moryall 2024-12-29 17:54:18 -08:00 committed by GitHub
parent 6e02bdec2e
commit d231264a16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,19 +1,20 @@
FROM ubuntu:bionic FROM ubuntu:24.04
MAINTAINER Zach Halpern <zahalpern+github@gmail.com>
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y\ RUN apt-get update && apt-get install -y\
build-essential\ build-essential \
cmake\ cmake \
git\ file \
libprotobuf-dev\ g++ \
libqt5sql5-mysql\ git \
libmysqlclient-dev\ libmariadb-dev-compat \
libqt5websockets5-dev\ libprotobuf-dev \
protobuf-compiler\ libqt6sql6-mysql \
qt5-default\ qt6-websockets-dev \
qtbase5-dev\ protobuf-compiler \
qttools5-dev-tools\ qt6-tools-dev \
qttools5-dev qt6-tools-dev-tools
COPY . /home/servatrice/code/ COPY . /home/servatrice/code/
WORKDIR /home/servatrice/code WORKDIR /home/servatrice/code
@ -25,7 +26,6 @@ RUN cmake .. -DWITH_SERVER=1 -DWITH_CLIENT=0 -DWITH_ORACLE=0 -DWITH_DBCONVERTER=
WORKDIR /home/servatrice WORKDIR /home/servatrice
EXPOSE 4747 EXPOSE 4747 4748
ENTRYPOINT [ "servatrice", "--log-to-console" ] ENTRYPOINT [ "servatrice", "--log-to-console" ]