FROM ubuntu:15.04 # Install the following utilities (required by openembedded) # http://www.openembedded.org/wiki/Getting_started#Ubuntu_.2F_Debian RUN apt-get update \ && apt-get install -y \ build-essential \ chrpath \ cpio \ curl \ diffstat \ file \ gawk \ git-core \ libsdl1.2-dev \ python3 \ texinfo \ unzip \ wget \ xterm \ sudo \ && rm -rf /var/lib/apt/lists/* RUN useradd -m builder \ && mkdir /dest \ && chown builder /dest RUN locale-gen en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LC_ALL en_US.UTF-8 USER builder ENV SOURCE_DIR /source ENV DEST_DIR /dest COPY build.sh / CMD bash -ex build.sh