Dockerfile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. python-flake8 \
  35. python-nose2 \
  36. python-pexpect \
  37. qemu-system-arm \
  38. qemu-system-x86 \
  39. rsync \
  40. subversion \
  41. unzip \
  42. wget \
  43. && \
  44. apt-get -y autoremove && \
  45. apt-get -y clean
  46. # To be able to generate a toolchain with locales, enable one UTF-8 locale
  47. RUN sed -i 's/# \(en_US.UTF-8\)/\1/' /etc/locale.gen && \
  48. /usr/sbin/locale-gen
  49. RUN useradd -ms /bin/bash br-user && \
  50. chown -R br-user:br-user /home/br-user
  51. USER br-user
  52. WORKDIR /home/br-user
  53. ENV HOME /home/br-user
  54. ENV LC_ALL en_US.UTF-8