]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - support/docker/Dockerfile
support/dockerfile: add directives to run as non-root
[coffee/buildroot.git] / support / docker / Dockerfile
1 # This Dockerfile generates the docker image that gets used by Gitlab CI
2 # To build it:
3 #   sudo docker build -t buildroot/base support/docker
4 #   sudo docker push buildroot/base
5
6 FROM debian:stable
7 LABEL maintainer="Buildroot mailing list <buildroot@buildroot.org>" \
8       vendor="Buildroot" \
9 description="Container with everything needed to run Buildroot"
10
11 # Setup environment
12 ENV DEBIAN_FRONTEND noninteractive
13
14 RUN dpkg --add-architecture i386
15 # The container has no package lists, so need to update first
16 RUN apt-get update -y -qq
17 RUN apt-get install -y -qq --no-install-recommends \
18     build-essential cmake libc6:i386 gcc-multilib \
19     bc ca-certificates file locales rsync \
20     cvs bzr git mercurial subversion wget \
21     cpio unzip \
22     libncurses5-dev \
23     python-nose2 python-pexpect qemu-system-arm qemu-system-x86
24 RUN apt-get -q -y autoremove
25 RUN apt-get -q -y clean
26
27 # To be able to generate a toolchain with locales, enable one UTF-8 locale
28 RUN sed -i 's/# \(en_US.UTF-8\)/\1/' /etc/locale.gen
29 RUN /usr/sbin/locale-gen
30
31 RUN useradd -ms /bin/bash br-user
32 RUN chown -R br-user:br-user /home/br-user
33
34 USER br-user
35 WORKDIR /home/br-user
36 ENV HOME /home/br-user
37 ENV LC_ALL en_US.UTF-8