containerized.android-studio/Dockerfile

15 lines
713 B
Docker

FROM ubuntu:22.04
RUN <<EOF
dpkg --add-architecture i386 &&
apt-get update -y &&
apt-get upgrade -y &&
apt-get install -y libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386 vim less jq curl \
libxi6 libfreetype6 libxtst6 libxrender1 libbsd0 libice6 libmd0 libsm6 libx11-6 libx11-data libxau6 \
libxaw7 libxcb1 libxdmcp6 libxext6 libxmu6 libxpm4 libxt6 x11-common fontconfig fonts-dejavu
apt-get clean -y
EOF
RUN (cd /opt; curl -L $(curl -s -L https://developer.android.com/studio | grep 'https://' | grep -e 'tgz\|tar.gz' | sed 's/.*https:/https:/;s/\.gz.*/.gz/') | tar -zxv )
COPY ./hello /bin/hello
CMD /opt/android-studio/bin/studio.sh
#COPY android-studio.tgz /android-studio.tgz