-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
50 lines (41 loc) · 1.26 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
FROM ubuntu:20.04
ARG DIR=/opt
WORKDIR $DIR
ENV TZ 'Europe/Berlin'
# timezone stuff (https://dawnbringer.net/blog/600/Docker:%20tzdata)
RUN echo $TZ > /etc/timezone && \
apt update -y && apt install -y tzdata && \
rm /etc/localtime && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
# apt packages
RUN apt update -y && apt install -y \
vim \
git \
gcc \
make \
unzip \
wget \
libblkid-dev \
libncurses5 \
python \
virtualenv \
tar && \
apt-get clean
# Get Android platform tools
RUN mkdir Android
RUN wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
RUN unzip platform-tools-latest-linux.zip -d ./Android/
ENV PATH=$DIR/Android/platform-tools:$PATH
# setup NDK
WORKDIR $DIR/Android
RUN wget https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip && \
unzip android-ndk-r15c-linux-x86_64.zip
ENV PATH=$DIR/Android/android-ndk-r15c:$PATH
# setup venv and install requirements.txt
WORKDIR /root
RUN --mount=type=bind,source=./requirements.txt,target=/src/requirements.txt \
virtualenv -p python3 .venv && \
. .venv/bin/activate && \
pip install -r /src/requirements.txt
WORKDIR /root