forked from erstrom/docker-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (24 loc) · 651 Bytes
/
Dockerfile
File metadata and controls
35 lines (24 loc) · 651 Bytes
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
FROM ubuntu:16.04
ENV QT_VERSION v5.9.1
ENV QT_CREATOR_VERSION v4.3.1
# Build prerequisites
RUN apt-get -y update && apt-get -y install qtbase5-dev \
libxcb-xinerama0-dev \
build-essential \
python
# Other useful tools
RUN apt-get -y update && apt-get -y install tmux \
wget \
zip \
git \
vim
# Simple root password in case we want to customize the container
RUN echo "root:root" | chpasswd
RUN useradd -G video -ms /bin/bash user
RUN mkdir -p /qt/build
WORKDIR /qt/build
ADD build_qt.sh /qt/build/build_qt.sh
RUN QT_VERSION=$QT_VERSION QT_CREATOR_VERSION=$QT_CREATOR_VERSION /qt/build/build_qt.sh
USER user
WORKDIR /qt
CMD ["bash"]