forked from ubports/morph-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (48 loc) · 1.27 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
43
44
45
46
47
48
49
50
51
FROM ubuntu:16.04
RUN apt-get update && \
apt-get -y --no-install-recommends install \
pyotherside \
apt-utils \
build-essential \
cmake \
dpkg-cross \
fakeroot \
libc-dev \
isc-dhcp-client \
net-tools \
ifupdown \
g++-arm-linux-gnueabihf \
pkg-config-arm-linux-gnueabihf \
ubuntu-sdk-libs \
ubuntu-sdk-libs-dev \
ubuntu-sdk-libs-tools \
qtbase5-private-dev \
oxideqt-codecs-extra \
qml-module-qtsysteminfo \
libqt5widgets5 \
qt5-doc \
language-pack-en \
click \
libapparmor-dev \
# testing QT with python
xvfb \
python3-autopilot \
ubuntu-ui-toolkit-autopilot \
python-xlib \
# apps
webbrowser-app \
gallery-app
RUN apt-get clean
# Replace 1000 with your user / group id
RUN export uid=1000 gid=1000 && \
mkdir -p /home/developer && \
echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \
echo "developer:x:${uid}:" >> /etc/group && \
mkdir -p /etc/sudoers.d/ && \
echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \
chmod 0440 /etc/sudoers.d/developer && \
chown ${uid}:${gid} -R /home/developer
USER developer
ENV HOME /home/developer
WORKDIR /home/developer/ubports_build
CMD bash