summary refs log tree commit diff
path: root/Dockerfile
blob: dddd1c6f71c996407b286d27b19b69753f5ad640 (plain) (blame)
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
FROM ubuntu:trusty

RUN \
    apt-get update -qq && \
    apt-get install -y software-properties-common && \
    add-apt-repository -y ppa:beineri/opt-qt-5.10.1-trusty && \
    add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
    apt-get update -qq && \
    apt-get install -y \
        qt510base qt510tools qt510svg qt510multimedia qt510quickcontrols2 qt510graphicaleffects \
        gcc-5 g++-5

RUN \
    apt-get install -y \
        make \
        pkg-config \
        ninja-build \
        liblmdb-dev \
        libssl-dev \
        mesa-common-dev \
        wget \
        fuse \
        git

RUN \
    wget https://cmake.org/files/v3.12/cmake-3.12.2-Linux-x86_64.sh && \
    sh cmake-3.12.2-Linux-x86_64.sh  --skip-license  --prefix=/usr/local

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"

RUN \
    mkdir libsodium-1.0.14 && \
    wget https://download.libsodium.org/libsodium/releases/old/libsodium-1.0.14.tar.gz && \
    tar -xzvf libsodium-1.0.14.tar.gz -C libsodium-1.0.14 && \
    cd libsodium-1.0.14/libsodium-1.0.14 && \
    ./configure && \
    make && make install

ENV PATH=/opt/qt510/bin:$PATH

RUN mkdir /build

WORKDIR /build