replicant-buildstage/Dockerfile

77 lines
1.6 KiB
Docker
Raw Normal View History

2019-01-20 16:49:33 +00:00
FROM debian:stretch
RUN cat /etc/apt/sources.list | sed "s/deb /deb-src /g" >> /etc/apt/sources.list \
&& sed -i "s/ main/ main contrib/g" /etc/apt/sources.list \
&& dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get build-dep -y \
gcc \
binutils \
llvm-defaults \
&& apt-get install -y \
kmod \
sudo \
git \
repo \
gcc-arm-none-eabi \
cmake \
python-dev \
swig \
ant \
bc \
proguard \
maven-debian-helper \
libemma-java \
libasm4-java \
libguava-java \
libnb-platform18-java \
libnb-org-openide-util-java \
libandroidsdk-ddmlib-java \
libmaven-source-plugin-java \
libfreemarker-java \
libmaven-javadoc-plugin-java \
ca-cacert \
curl \
gawk \
libgmp3-dev \
libmpfr-dev \
libmpc-dev \
git-core \
gperf \
libncurses-dev \
squashfs-tools \
pngcrush \
zip \
zlib1g-dev \
lzma \
libc6-dev-i386 \
g++-multilib \
lib32z1-dev \
lib32readline-dev \
lib32ncurses5-dev \
zlib1g-dev:i386 \
xsltproc \
python-mako \
schedtool \
gradle \
dirmngr \
libandroidsdk-sdklib-java \
eclipse-jdt \
libgradle-android-plugin-java \
android-sdk-build-tools \
android-sdk-platform-23 \
aapt \
lzop \
&& mkdir /build \
&& git config --global user.email "replicant@localhost" \
&& git config --global user.name "replicant" \
&& mkdir -p ~/.gnupg \
&& echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf
2019-01-20 16:49:33 +00:00
ADD entrypoint.sh /entrypoint.sh
ENV USER root
VOLUME /build
WORKDIR /build
ENTRYPOINT [ "/bin/bash", "/entrypoint.sh" ]