You've already forked yoctobuilder
58 lines
1.0 KiB
Docker
58 lines
1.0 KiB
Docker
FROM debian:stable-slim
|
|
MAINTAINER Tom Chivert <me@tchv.fr>
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
RUN apt update && \
|
|
apt install -yq \
|
|
sudo \
|
|
openssh-client \
|
|
vim \
|
|
git \
|
|
curl \
|
|
gawk \
|
|
wget \
|
|
git \
|
|
diffstat \
|
|
unzip \
|
|
texinfo \
|
|
gcc \
|
|
build-essential \
|
|
chrpath \
|
|
socat \
|
|
cpio \
|
|
python3 \
|
|
python3-pip \
|
|
python3-pexpect \
|
|
python3-future \
|
|
xz-utils \
|
|
debianutils \
|
|
iputils-ping \
|
|
python3-git \
|
|
python3-jinja2 \
|
|
python3-subunit \
|
|
zstd \
|
|
liblz4-tool \
|
|
file \
|
|
locales \
|
|
libacl1
|
|
|
|
RUN apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN ln -s /usr/bin/python3 /usr/bin/python
|
|
|
|
RUN groupadd build -g 1000
|
|
RUN useradd -ms /bin/bash -p build build -u 1000 -g 1000 && \
|
|
usermod -aG sudo build && \
|
|
echo "build:build" | chpasswd
|
|
|
|
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
|
|
|
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
|
|
locale-gen
|
|
|
|
ENV LANG=en_US.utf8
|
|
|
|
USER build
|
|
WORKDIR /home/build
|