Dockerfile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. # docker build -t registry.gitlab.com/buildroot.org/buildroot/base:YYYYMMDD.HHMM support/docker
  4. # docker push registry.gitlab.com/buildroot.org/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:bullseye-20230202
  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 -o APT::Retries=3 update -y
  19. RUN apt-get -o APT::Retries=3 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. openssh-server \
  35. python3 \
  36. python3-flake8 \
  37. python3-magic \
  38. python3-nose2 \
  39. python3-pexpect \
  40. python3-pytest \
  41. qemu-system-arm \
  42. qemu-system-x86 \
  43. rsync \
  44. shellcheck \
  45. subversion \
  46. unzip \
  47. wget \
  48. && \
  49. apt-get -y autoremove && \
  50. apt-get -y clean
  51. # To be able to generate a toolchain with locales, enable one UTF-8 locale
  52. RUN sed -i 's/# \(en_US.UTF-8\)/\1/' /etc/locale.gen && \
  53. /usr/sbin/locale-gen
  54. RUN useradd -ms /bin/bash br-user && \
  55. chown -R br-user:br-user /home/br-user
  56. USER br-user
  57. WORKDIR /home/br-user
  58. ENV HOME /home/br-user
  59. ENV LC_ALL en_US.UTF-8