forked from dolphin-emu/dolphin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
103 lines (96 loc) · 2.48 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
FROM ubuntu:18.04
MAINTAINER quriouspixel
ENV QTVER=5.14.2
ENV QTVERMIN=514
ENV LLVMVER=10
ENV GCCVER=9
ENV CLANG_BINARY=clang-${LLVMVER}
ENV CLANGXX_BINARY=clang++-${LLVMVER}
ENV LLD_BINARY=lld-${LLVMVER}
ENV GCC_BINARY=gcc-${GCCVER}
ENV GXX_BINARY=g++-${GCCVER}
RUN \
apt-get update -y && \
apt-get install -y curl software-properties-common apt-transport-https apt-utils && \
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
add-apt-repository -y ppa:beineri/opt-qt-${QTVER}-bionic && \
DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y full-upgrade && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
build-essential \
dialog \
dpkg \
fuse \
$GCC_BINARY $GXX_BINARY \
libbluetooth-dev \
liblz4-dev \
liblzma-dev \
libssl-dev \
libopus-dev \
libpng-dev \
libsystemd-dev \
libzip-dev \
libzstd-dev \
zlib1g-dev \
libasound2-dev \
libpulse-dev \
pulseaudio \
p7zip \
p7zip-full \
libsfml-dev \
libminiupnpc-dev \
libmbedtls-dev \
libpugixml-dev \
libbz2-dev \
liblzo2-dev \
qt514-meta-full \
libxi-dev \
libavcodec-dev \
libudev-dev \
libusb-1.0-0-dev \
libevdev-dev \
libc6-dev \
libhidapi-dev \
libavformat-dev \
libavdevice-dev \
libfmt-dev \
libwayland-dev \
libxrandr-dev \
libglu1-mesa-dev \
libcurl4-openssl-dev \
x11-utils \
zenity \
wget \
curl \
git \
gettext \
ccache \
make \
cmake \
git \
ninja-build
RUN \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCCVER} 10 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${GCCVER} 10 && \
ls -al /opt/qt514/ && \
ls -al /opt/qt514/bin/ && \
find . -name "qt514-env.sh" -exec sh qt514-env.sh {} \; && \
. /opt/qt514/bin/qt514-env.sh && \
rm -rf /opt/qt514/examples /opt/qt514/doc && \
gcc --version && \
g++ --version
ENV CMAKEVER=3.18.1
RUN \
cd /tmp && \
curl -sLO https://cmake.org/files/v${CMAKEVER%.*}/cmake-${CMAKEVER}-Linux-x86_64.sh && \
sh cmake-${CMAKEVER}-Linux-x86_64.sh --prefix=/usr --skip-license && \
rm ./cmake*.sh && \
cmake --version
RUN \
cd /tmp && \
git clone https://github.com/facebook/zstd.git && \
cd zstd/build/cmake && \
mkdir build && cd build && \
cmake .. -GNinja && \
ninja && ninja install && \
cd /tmp
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt /var/lib/cache /var/lib/log