2019-02-24 22:39:45 +03:00
|
|
|
FROM ubuntu:bionic
|
2017-12-14 02:23:17 +03:00
|
|
|
|
|
|
|
RUN \
|
|
|
|
apt-get update -qq && \
|
2018-09-08 23:37:24 +03:00
|
|
|
apt-get install -y software-properties-common && \
|
|
|
|
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
|
2017-12-14 02:23:17 +03:00
|
|
|
apt-get update -qq && \
|
|
|
|
apt-get install -y \
|
2019-02-24 22:39:45 +03:00
|
|
|
qtbase5-dev qttools5-dev libqt5svg5-dev qtmultimedia5-dev \
|
2018-09-08 23:37:24 +03:00
|
|
|
gcc-5 g++-5
|
2017-12-14 02:23:17 +03:00
|
|
|
|
|
|
|
RUN \
|
2018-09-08 23:37:24 +03:00
|
|
|
apt-get install -y \
|
2019-02-25 00:42:37 +03:00
|
|
|
nlohmann-json-dev \
|
2018-09-08 23:37:24 +03:00
|
|
|
make \
|
|
|
|
pkg-config \
|
|
|
|
ninja-build \
|
|
|
|
libsodium-dev \
|
|
|
|
liblmdb-dev \
|
|
|
|
libssl-dev \
|
|
|
|
mesa-common-dev \
|
|
|
|
wget \
|
|
|
|
fuse \
|
|
|
|
git
|
2017-12-14 02:23:17 +03:00
|
|
|
|
2018-09-08 23:37:24 +03:00
|
|
|
RUN \
|
|
|
|
wget https://cmake.org/files/v3.12/cmake-3.12.2-Linux-x86_64.sh && \
|
2019-02-24 22:39:45 +03:00
|
|
|
sh cmake-3.12.2-Linux-x86_64.sh --skip-license --prefix=/usr/local
|
2017-12-14 02:23:17 +03:00
|
|
|
|
2018-09-08 23:37:24 +03:00
|
|
|
RUN \
|
|
|
|
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 10 && \
|
|
|
|
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 10 && \
|
|
|
|
update-alternatives --set gcc "/usr/bin/gcc-5" && \
|
|
|
|
update-alternatives --set g++ "/usr/bin/g++-5"
|
2017-12-14 02:23:17 +03:00
|
|
|
|
2018-05-18 20:36:12 +03:00
|
|
|
ENV PATH=/opt/qt510/bin:$PATH
|
2017-12-14 02:23:17 +03:00
|
|
|
|
|
|
|
RUN mkdir /build
|
|
|
|
|
|
|
|
WORKDIR /build
|