]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - support/docker/Dockerfile
support/dockker: create and push tagged images
[coffee/buildroot.git] / support / docker / Dockerfile
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
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
10
11 LABEL maintainer="Buildroot mailing list <buildroot@buildroot.org>" \
12       vendor="Buildroot" \
13 description="Container with everything needed to run Buildroot"
14
15 # Setup environment
16 ENV DEBIAN_FRONTEND noninteractive
17
18 # This repository can be a bit slow at times. Don't panic...
19 COPY apt-sources.list /etc/apt/sources.list
20
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 \
28         cpio unzip \
29         libncurses5-dev \
30         python-nose2 python-pexpect qemu-system-arm qemu-system-x86 && \
31     apt-get -y autoremove && \
32     apt-get -y clean
33
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 && \
36     /usr/sbin/locale-gen
37
38 RUN useradd -ms /bin/bash br-user && \
39     chown -R br-user:br-user /home/br-user
40
41 USER br-user
42 WORKDIR /home/br-user
43 ENV HOME /home/br-user
44 ENV LC_ALL en_US.UTF-8