File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM debian:9
2+
3+ LABEL comment="barebox Debian 9 (Stretch) build environment" \
4+ maintainer="Antony Pavlov <antonynpavlov@gmail.com>"
5+
6+ # Add default user
7+ ENV BUILDUSER builduser
8+ ENV WORKDIR /workdir
9+
10+ # use apt-cacher proxy if necessary
11+ #RUN echo 'Acquire::http { Proxy "http://PROXY:3142"; };' >> /etc/apt/apt.conf.d/01proxy
12+
13+ RUN printf "deb http://archive.debian.org/debian/ stretch main contrib non-free" > /etc/apt/sources.list
14+
15+ RUN apt-get update \
16+ && apt-get install -y --no-install-recommends \
17+ git less \
18+ make gcc libc6-dev \
19+ flex bison \
20+ inkscape imagemagick librsvg2-bin \
21+ bzip2 lzop liblz4-tool pkg-config xz-utils \
22+ libusb-1.0-0-dev libssl-dev libncursesw5-dev \
23+ wget ca-certificates \
24+ gcc-mips-linux-gnu libc6-dev-mips-cross \
25+ gcc-arm-linux-gnueabi libc6-dev-armel-cross \
26+ gcc-arm-linux-gnueabihf libc6-dev-armhf-cross \
27+ gcc-aarch64-linux-gnu libc6-dev-arm64-cross \
28+ bc libelf-dev \
29+ vim file \
30+ sudo \
31+ && apt-get clean \
32+ && useradd -ms /bin/bash $BUILDUSER \
33+ && adduser $BUILDUSER sudo \
34+ && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/sudo-nopasswd
35+
36+ USER $BUILDUSER
37+
38+ WORKDIR $WORKDIR
You can’t perform that action at this time.
0 commit comments