forked from theshadowx/Qt5_Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (35 loc) · 1.35 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
FROM ubuntu:16.04
MAINTAINER Ali Diouri <[email protected]>
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN echo 'deb http://ppa.launchpad.net/beineri/opt-qt-5.11.0-xenial/ubuntu xenial main' >> /etc/apt/sources.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E9977759
# install depdencies
RUN sed -i 's/ universe/ universe multiverse/' /etc/apt/sources.list
RUN apt update && \
apt upgrade -y && \
apt dist-upgrade -y && \
apt install -y \
git \
wget \
xvfb \
flex \
snapcraft \
bison \
libxcursor-dev \
libxcomposite-dev \
software-properties-common \
build-essential \
libssl-dev \
libxcb1-dev \
libx11-dev \
libgl1-mesa-dev \
libudev-dev \
qt511-meta-full && \
apt clean
ENV QT_BASE_DIR=/opt/qt511
ENV QTDIR=$QT_BASE_DIR
ENV PATH=$QT_BASE_DIR/bin:$PATH
ENV LD_LIBRARY_PATH=$QT_BASE_DIR/lib:$LD_LIBRARY_PATH
ENV PKG_CONFIG_PATH=$QT_BASE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
WORKDIR /home/root/
CMD ["/bin/bash"]