forked from learningequality/kolibri-installer-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (35 loc) · 1.1 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
# Dockerfile for build
FROM docker.io/endlessm/eos:5.1
# Install the dependencies for the build system
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y \
java-common \
ca-certificates-java && \
apt-get install -y \
git \
openjdk-17-jdk-headless \
python-is-python3 \
python3 \
python3-pip \
wget \
unzip \
&& \
apt-get clean
# Install Android SDK
ENV ANDROID_HOME=/opt/android/sdk
COPY Makefile /tmp/
RUN make -C /tmp sdk && \
rm -f /tmp/Makefile
# install python dependencies
COPY requirements.txt /tmp/
RUN pip install -r /tmp/requirements.txt && \
rm -f /tmp/requirements.txt
# Configure gradle for use in docker. Disable gradle's automatically
# detected rich console since it doesn't work in docker.
ENV GRADLE_OPTS="-Dorg.gradle.console=plain"
# Create a mount point for the build cache and make it world writable so
# that the volume can be used by an unprivileged user without additional
# setup.
RUN mkdir /cache && chmod 777 /cache
CMD [ "./gradlew", "build", "bundle" ]