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
6 # We use a specific tag for the base image *and* the corresponding date
7 # for the repository., so do not forget to update the apt-sources.list
8 # file that is shipped next to this Dockerfile.
9 FROM debian:stretch-20171210
11 LABEL maintainer="Buildroot mailing list <buildroot@buildroot.org>" \
13 description="Container with everything needed to run Buildroot"
16 ENV DEBIAN_FRONTEND noninteractive
18 # This repository can be a bit slow at times. Don't panic...
19 COPY apt-sources.list /etc/apt/sources.list
21 # The container has no package lists, so need to update first
22 RUN dpkg --add-architecture i386 && \
23 apt-get update -y && \
24 apt-get install -y --no-install-recommends \
25 build-essential cmake libc6:i386 gcc-multilib \
26 bc ca-certificates file locales rsync \
27 cvs bzr git mercurial subversion wget \
30 python-nose2 python-pexpect qemu-system-arm qemu-system-x86 && \
31 apt-get -y autoremove && \
34 # To be able to generate a toolchain with locales, enable one UTF-8 locale
35 RUN sed -i 's/# \(en_US.UTF-8\)/\1/' /etc/locale.gen && \
38 RUN useradd -ms /bin/bash br-user && \
39 chown -R br-user:br-user /home/br-user
43 ENV HOME /home/br-user
44 ENV LC_ALL en_US.UTF-8