Dockerfile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # This Dockerfile generates the docker image that gets used by Gitlab CI
  2. # To build it (YYYYMMDD.HHMM is the current date and time in UTC):
  3. # sudo docker build -t buildroot/base:YYYYMMDD.HHMM support/docker
  4. # sudo docker push buildroot/base:YYYYMMDD.HHMM
  5. # We use a specific tag for the base image *and* the corresponding date
  6. # for the repository., so do not forget to update the apt-sources.list
  7. # file that is shipped next to this Dockerfile.
  8. FROM debian:stretch-20171210
  9. LABEL maintainer="Buildroot mailing list <buildroot@buildroot.org>" \
  10. vendor="Buildroot" \
  11. description="Container with everything needed to run Buildroot"
  12. # Setup environment
  13. ENV DEBIAN_FRONTEND noninteractive
  14. # This repository can be a bit slow at times. Don't panic...
  15. COPY apt-sources.list /etc/apt/sources.list
  16. # The container has no package lists, so need to update first
  17. RUN dpkg --add-architecture i386 && \
  18. apt-get update -y && \
  19. apt-get install -y --no-install-recommends \
  20. build-essential cmake libc6:i386 g++-multilib \
  21. bc ca-certificates file locales rsync \
  22. cvs bzr git mercurial subversion wget \
  23. cpio unzip \
  24. libncurses5-dev \
  25. python-nose2 python-pexpect qemu-system-arm qemu-system-x86 \
  26. python-pip && \
  27. apt-get -y autoremove && \
  28. apt-get -y clean
  29. # For check-flake8
  30. RUN python -m pip install --upgrade pip setuptools wheel && \
  31. pip install -q \
  32. flake8==3.5.0 \
  33. mccabe==0.6.1 \
  34. pycodestyle==2.3.1 \
  35. pyflakes==1.6.0
  36. # To be able to generate a toolchain with locales, enable one UTF-8 locale
  37. RUN sed -i 's/# \(en_US.UTF-8\)/\1/' /etc/locale.gen && \
  38. /usr/sbin/locale-gen
  39. RUN useradd -ms /bin/bash br-user && \
  40. chown -R br-user:br-user /home/br-user
  41. USER br-user
  42. WORKDIR /home/br-user
  43. ENV HOME /home/br-user
  44. ENV LC_ALL en_US.UTF-8