forked from chigraph/precompiled-kf5-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (30 loc) · 1.72 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
FROM ubuntu:trusty
MAINTAINER LNJ <git@lnj.li>
WORKDIR /var/build/
RUN echo set debconf/frontend Noninteractive | debconf-communicate \
&& echo set debconf/priority critical | debconf-communicate
RUN echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu trusty main restricted multiverse universe" > /etc/apt/sources.list \
&& echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu trusty-updates main restricted multiverse universe" >> /etc/apt/sources.list \
&& echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu trusty-security main restricted multiverse universe" >> /etc/apt/sources.list
RUN apt-get update \
&& apt-get -y --no-install-recommends install apt-transport-https software-properties-common gnupg \
&& apt-get clean
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test \
&& add-apt-repository -y ppa:beineri/opt-qt-5.10.1-trusty
RUN apt-get update
RUN apt-get -y --no-install-recommends install \
qt510base qt510script qt510declarative qt510tools qt510x11extras qt510svg qt510quickcontrols2 \
ninja-build g++-8 gcc-8 pkg-config gperf \
gettext bison wget texinfo docbook-xml docbook-xsl flex \
libxcb-keysyms1-dev libxml2-utils libudev-dev libqrencode-dev libdmtx-dev \
libattr1-dev libphonon4qt5-dev libphonon4qt5experimental-dev liburi-perl \
libboost-all-dev liblmdb-dev libxrender-dev libxslt1-dev \
&& apt-get clean
RUN wget https://cmake.org/files/v3.11/cmake-3.11.0-rc3-Linux-x86_64.tar.gz -O- | \
sudo tar xz -C /usr --strip-components=1
ENV QT_DIR="/opt/qt510"
ENV PATH="$QT_DIR:$PATH"
ENV LD_LIBRARY_PATH=$QT_DIR/lib/x86_64-linux-gnu:$QT_DIR/lib:$LD_LIBRARY_PATH
ENV PKG_CONFIG_PATH=$QT_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
# Workaround to build all travis-ci tiers
ENV BUILD_ALL=1