-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
72 lines (59 loc) · 1.64 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
FROM python:3.6-stretch
ENV PATH /usr/local/bin:$PATH
WORKDIR /src
ADD . /src
RUN dpkg --add-architecture i386
RUN apt-get update && apt-get install -y -q \
build-essential \
sudo \
bsdtar \
git \
ffmpeg \
libsdl2-dev \
libsdl2-image-dev \
libsdl2-mixer-dev \
libsdl2-ttf-dev \
libportmidi-dev \
libswscale-dev \
libavformat-dev \
libavcodec-dev \
zlib1g-dev \
libgstreamer1.0 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
libgstreamer1.0-dev \
openjdk-8-jdk \
ccache \
unzip \
libncurses5:i386 \
libstdc++6:i386 \
libgtk2.0-0:i386 \
libpangox-1.0-0:i386 \
libpangoxft-1.0-0:i386 \
libidn11:i386 \
zlib1g:i386 \
wget
RUN pip install --trusted-host pypi.python.org -r requirements-INSTALL-FIRST.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt
RUN set -ex \
&& useradd kivy -mN \
&& echo "kivy:kivy" | chpasswd \
&& chown kivy:users /opt \
&& chown kivy:users /src
RUN set -ex \
&& sudo -u kivy -i \
&& cd /opt \
&& git clone https://github.com/kivy/buildozer \
&& cd buildozer \
&& python setup.py build \
&& pip install -e . \
&& sed -i -e 's/build.gradle/~build.gradle/g' /opt/buildozer/buildozer/targets/android.py
RUN set -ex \
&& sudo -u kivy -i \
&& cd /opt \
&& wget https://www.crystax.net/download/crystax-ndk-10.3.2-linux-x86_64.tar.xz \
&& bsdtar xf crystax-ndk-10.3.2-linux-x86_64.tar.xz \
&& rm crystax-ndk-10.3.2-linux-x86_64.tar.xz
RUN ln -s /usr/local/bin/buildozer /bin/buildozer
RUN mkdir /buildozer && chown kivy /buildozer
USER kivy