1- FROM debian:wheezy-backports
1+ FROM icsinc/qt5.5.1-x64:latest
22
33# Install dependencies and build tools
44RUN \
55 apt-get update && apt-get install -y \
6- git \
7- build-essential \
8- qt5-default \
9- qt5-qmake \
10- libqt5svg5-dev \
116 ruby-dev \
127 rpm \
138 wget \
2116
2217# Download and build cutechess
2318RUN \
19+ cd / && \
2420 git clone https://github.com/cutechess/cutechess.git && \
2521 cd /cutechess && \
2622 qmake && \
@@ -66,14 +62,14 @@ RUN \
6662 -m "Ilari Pihlajisto <ilari.pihlajisto@mbnet.fi>" \
6763 --description "Commandline and graphical interface for playing chess" \
6864 -d "libc6 (>= 2.19)" \
69- -d "libgcc1 (>= 1:4.9.2 )" \
70- -d "libqt5svg5 (>= 5.3.2 )" \
71- -d "libqt5core5a (>= 5.3.2 )" \
72- -d "libqt5gui5 (>= 5.3.2 )" \
73- -d "libqt5widgets5 (>= 5.3.2 )" \
74- -d "libqt5printsupport5 (>= 5.3.2 )" \
75- -d "libqt5concurrent5 (>= 5.3.2 )" \
76- -d "libstdc++6 (>= 4.9.2 )" && \
65+ -d "libgcc1 (>= 1:4.9)" \
66+ -d "libqt5svg5 (>= 5.5.1 )" \
67+ -d "libqt5core5a (>= 5.5.1 )" \
68+ -d "libqt5gui5 (>= 5.5.1 )" \
69+ -d "libqt5widgets5 (>= 5.5.1 )" \
70+ -d "libqt5printsupport5 (>= 5.5.1 )" \
71+ -d "libqt5concurrent5 (>= 5.5.1 )" \
72+ -d "libstdc++6 (>= 4.8.4 )" && \
7773 mv /cutechess_pkg/*.deb /finished_pkg/ && \
7874 fpm -s dir -t rpm -C /cutechess_pkg \
7975 -a "x86_64" \
@@ -85,18 +81,17 @@ RUN \
8581 --category "Amusements/Games/Board/Chess" \
8682 -m "Ilari Pihlajisto <ilari.pihlajisto@mbnet.fi>" \
8783 --description "Commandline and graphical interface for playing chess" \
88- -d "qt5-qtbase >= 5.3.2 " \
89- -d "qt5-qtsvg >= 5.3.2 " && \
84+ -d "qt5-qtbase >= 5.5.1 " \
85+ -d "qt5-qtsvg >= 5.5.1 " && \
9086 mv /cutechess_pkg/*.rpm /finished_pkg/
9187
9288# Create .tar.gz package for cutechess-cli
9389RUN \
9490 cd /cutechess && \
95- export CUTECHESS_CLI_GIT_VERSION=$(git describe --tags --match "cli-*" ) && \
9691 mkdir -p /cutechess_pkg/cutechess-cli && \
9792 cd /cutechess_pkg && \
9893 mkdir -p ./cutechess-cli/lib && \
99- cp /usr/ lib/x86_64-linux-gnu /libQt5Core.so.5 cutechess-cli/lib/ && \
94+ cp $QT_BASE_DIR/ lib/libQt5Core.so.5 cutechess-cli/lib/ && \
10095 cp /cutechess/projects/cli/cutechess-cli cutechess-cli/ && \
10196 cp /cutechess/COPYING cutechess-cli/ && \
10297 cp /cutechess/docs/man-style.css cutechess-cli/ && \
@@ -107,7 +102,8 @@ RUN \
107102 cp /cutechess/docs/engines.json.5.html cutechess-cli/ && \
108103 cp /cutechess/docs/engines.json.5.txt cutechess-cli/ && \
109104 tar -zcvf cutechess-cli-linux64.tar.gz cutechess-cli && \
110- mv cutechess-cli-linux64.tar.gz /finished_pkg/cutechess-$CUTECHESS_CLI_GIT_VERSION-linux64.tar.gz
105+ export CUTECHESS_CLI_VERSION=$(grep "^CUTECHESS_CLI_VERSION" /cutechess/projects/cli/cli.pro | awk '{print $NF}' ) && \
106+ mv cutechess-cli-linux64.tar.gz /finished_pkg/cutechess-cli-$CUTECHESS_CLI_VERSION-linux64.tar.gz
111107
112108# Copy the .deb package to the host
113109CMD cp /finished_pkg/cutechess*.* /package
0 commit comments