Dockerfile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. apt-get -y autoremove && \
  27. apt-get -y clean
  28. # To be able to generate a toolchain with locales, enable one UTF-8 locale
  29. RUN sed -i 's/# \(en_US.UTF-8\)/\1/' /etc/locale.gen && \
  30. /usr/sbin/locale-gen
  31. RUN useradd -ms /bin/bash br-user && \
  32. chown -R br-user:br-user /home/br-user
  33. USER br-user
  34. WORKDIR /home/br-user
  35. ENV HOME /home/br-user
  36. ENV LC_ALL en_US.UTF-8