Skip to content

Commit 0ae3c94

Browse files
committed
introduce barebox Debian 9 (Stretch) build environment
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
1 parent 63102a6 commit 0ae3c94

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

Dockerfile.debian9

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

0 commit comments

Comments
 (0)