-
Notifications
You must be signed in to change notification settings - Fork 71
/
Dockerfile
29 lines (23 loc) · 1.06 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
FROM kivy/buildozer:latest
# See https://github.com/kivy/buildozer/blob/master/Dockerfile
# Buildozer will be installed in entrypoint.py
# This is needed to install version specified by user
RUN pip3 uninstall -y buildozer
# Update Cython as Buildozer now requires it to build successfully
RUN pip install --upgrade Cython
# Get the latest JDK version as Buildozer requires the latest version to build the APK
RUN sudo apt-get update && \
sudo apt-get install -y software-properties-common && \
sudo rm -rf /var/lib/apt/lists/*
RUN sudo add-apt-repository ppa:openjdk-r/ppa
RUN sudo apt update
RUN sudo apt-get -y install openjdk-17-jdk
# Remove a lot of warnings
# sudo: setrlimit(RLIMIT_CORE): Operation not permitted
# See https://github.com/sudo-project/sudo/issues/42
RUN echo "Set disable_coredump false" | sudo tee -a /etc/sudo.conf > /dev/null
# By default Python buffers output and you see prints after execution
# Set env variable to disable this behavior
ENV PYTHONUNBUFFERED=1
COPY entrypoint.py /action/entrypoint.py
ENTRYPOINT ["/action/entrypoint.py"]