Android Dockerfiles better apt options

This commit is contained in:
Gioacchino Mazzurco 2021-12-01 16:30:28 +01:00
parent 475d8ffc11
commit 72caa2aa68
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
2 changed files with 8 additions and 4 deletions

View file

@ -25,14 +25,16 @@
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
ENV APT_UNAT="--assume-yes --quiet"
RUN apt-get update && apt-get upgrade -y && apt-get clean
RUN apt-get install --no-install-recommends --assume-yes --quiet \
RUN apt-get update $APT_UNAT && apt-get upgrade --show-upgraded $APT_UNAT && \
apt-get clean $APT_UNAT
RUN apt-get install --no-install-recommends $APT_UNAT \
bash build-essential bzip2 cmake curl chrpath doxygen \
git p7zip python qt5-default qttools5-dev tclsh unzip wget zip
# Dependencies to create Android pkg
RUN apt-get install --no-install-recommends --assume-yes --quiet \
RUN apt-get install --no-install-recommends $APT_UNAT \
openjdk-8-jre openjdk-8-jdk openjdk-8-jdk-headless gradle
ARG FRESHCLONE=0