FROM ubuntu:16.04 MAINTAINER Pierre-Hugues Husson ENV DEBIAN_FRONTEND noninteractive ENV USER root RUN dpkg --add-architecture i386 RUN apt update && apt install -y \ aapt \ build-essential \ imagemagick \ xorriso \ locales \ openjdk-8-jdk \ python \ git \ m4 \ unzip \ bison \ zip \ gperf \ libxml2-utils \ zlib1g:i386 \ libstdc++6:i386 \ bc \ curl \ lzop \ lzip \ lunzip \ sudo ; \ apt-get clean autoclean RUN ln -s /usr/bin/xorrisofs /usr/bin/mkisofs RUN locale-gen en_US.UTF-8 RUN dpkg-reconfigure locales # Download and install repo RUN curl https://storage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo RUN chmod a+x /usr/local/bin/repo USER root RUN groupadd --gid 1000 dakkar RUN useradd --gid 1000 --create-home --no-user-group --uid 1000 --shell /bin/bash dakkar USER dakkar:dakkar RUN git config --global user.name "dakkar" RUN git config --global user.email "dakkar@thenautilus.net"