nheko/Dockerfile

42 lines
1.1 KiB
Docker
Raw Normal View History

2018-09-08 22:37:24 +02:00
FROM ubuntu:trusty
2017-12-14 00:23:17 +01:00
RUN \
apt-get update -qq && \
2018-09-08 22:37:24 +02:00
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 && \
add-apt-repository -y ppa:chris-lea/libsodium && \
2017-12-14 00:23:17 +01:00
apt-get update -qq && \
apt-get install -y \
2018-09-08 22:37:24 +02:00
qt510base qt510tools qt510svg qt510multimedia \
gcc-5 g++-5
2017-12-14 00:23:17 +01:00
RUN \
2018-09-08 22:37:24 +02:00
apt-get install -y \
make \
pkg-config \
ninja-build \
libsodium-dev \
liblmdb-dev \
libssl-dev \
mesa-common-dev \
wget \
fuse \
git
2017-12-14 00:23:17 +01:00
2018-09-08 22:37:24 +02:00
RUN \
wget https://cmake.org/files/v3.12/cmake-3.12.2-Linux-x86_64.sh && \
sudo sh cmake-3.12.2-Linux-x86_64.sh --skip-license --prefix=/usr/local
2017-12-14 00:23:17 +01:00
2018-09-08 22:37:24 +02: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 00:23:17 +01:00
ENV PATH=/opt/qt510/bin:$PATH
2017-12-14 00:23:17 +01:00
RUN mkdir /build
WORKDIR /build