-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
74 lines (65 loc) · 1.69 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM ubuntu:jammy
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
cmake \
g++ \
gcc \
make \
doxygen \
qmake6 \
qt6-base-dev \
qt6-base-dev-tools \
qt6-multimedia-dev \
qt6-documentation-tools \
qt6-declarative-dev \
qt6-declarative-dev-tools \
qt6-image-formats-plugins \
qt6-l10n-tools \
qt6-translations-l10n \
libx11-xcb1 \
libxcb1 \
libxkbcommon-x11-0 \
libxkbcommon0 \
libxcb-keysyms1 \
libxcb-image0 \
libxcb-shm0 \
libxcb-icccm4 \
libxcb-sync1 \
libxcb-xfixes0 \
libxcb-shape0 \
libxcb-randr0 \
libxcb-render-util0 \
xvfb \
mlocate \
libgl1-mesa-dev \
qbs \
gcovr \
lcov \
openjdk-17-jre \
python3 \
python3-pip \
curl \
unzip \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install "coverxygen==1.7.0"
RUN qtchooser -install 6 /usr/bin/qmake6 && qtchooser -install -f default /usr/bin/qmake6
RUN qbs setup-toolchains --detect && qbs setup-qt /usr/bin/qmake6 qt-6-2-4-bin && qbs config defaultProfile qt-6-2-4-bin
# Install Xvfb
# Start Xvfb on display :1
RUN Xvfb :1 -screen 0 1024x768x16 &
# Set the environment variables
ENV QT_DEBUG_PLUGINS=1
ENV QT_QPA_PLATFORM=xcb
ENV QT_QPA_PLATFORM_PLUGIN_PATH=/opt/Qt/6.2.4/gcc_64/plugins
ENV QT_PLUGIN_PATH=/opt/Qt/6.2.4/gcc_64/plugins
ENV DISPLAY=:1
# Set the working directory in the container to /app
WORKDIR /app
copy Pacman /app/Pacman
# Add the current directory contents into the container at /app
ADD . /app
# Build the project
RUN qmake /app/Pacman/Pacman.pro
RUN make
# Run the application
#CMD ["./Pacman/Pacman"]
#ENTRYPOINT [ "/app/Pacman/Pacman" ]