Dockerfile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. RUN apt-get install -y --no-install-recommends \
  20. bc \
  21. build-essential \
  22. bzr \
  23. ca-certificates \
  24. cmake \
  25. cpio \
  26. cvs \
  27. file \
  28. g++-multilib \
  29. git \
  30. libc6:i386 \
  31. libncurses5-dev \
  32. locales \
  33. mercurial \
  34. python3 \
  35. python3-flake8 \
  36. python3-nose2 \
  37. python3-pexpect \
  38. qemu-system-arm \
  39. qemu-system-x86 \
  40. rsync \
  41. subversion \
  42. unzip \
  43. wget \
  44. && \
  45. apt-get -y autoremove && \
  46. apt-get -y clean
  47. # To be able to generate a toolchain with locales, enable one UTF-8 locale
  48. RUN sed -i 's/# \(en_US.UTF-8\)/\1/' /etc/locale.gen && \
  49. /usr/sbin/locale-gen
  50. RUN useradd -ms /bin/bash br-user && \
  51. chown -R br-user:br-user /home/br-user
  52. USER br-user
  53. WORKDIR /home/br-user
  54. ENV HOME /home/br-user
  55. ENV LC_ALL en_US.UTF-8