Dockerfile 806 B

123456789101112131415161718192021
  1. FROM debian:jessie
  2. MAINTAINER Émile Morel
  3. # U-boot part
  4. RUN echo deb http://www.emdebian.org/debian unstable main > /etc/apt/sources.list.d/emdebian.list
  5. ENV DEBIAN_FRONTEND noninteractive
  6. ENV DEBCONF_NONINTERACTIVE_SEEN true
  7. ENV LC_ALL C
  8. ENV LANGUAGE C
  9. ENV LANG C
  10. RUN apt-get update
  11. RUN apt-get install --force-yes -y emdebian-archive-keyring
  12. RUN apt-get update
  13. # Install packages for kernel and u-boot compilation
  14. RUN apt-get install --force-yes -y gcc-4.9-arm-linux-gnueabihf ncurses-dev uboot-mkimage build-essential git vim libusb-1.0-0-dev pkg-config bc netpbm wget tar bzip2
  15. RUN ln -s /usr/bin/arm-linux-gnueabihf-gcc-4.9 /usr/bin/arm-linux-gnueabihf-gcc
  16. # Install packages for debootstrap
  17. RUN apt-get install --force-yes -y debootstrap dpkg-dev qemu binfmt-support qemu-user-static dpkg-cross