2024-07-03 17:59:46 +00:00
|
|
|
FROM debian:bookworm-20240513-slim
|
2018-02-03 15:24:05 +00:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
# Install yocto dependencies, locales, libs for gcc plugin building and a text editor
|
|
|
|
RUN apt update && apt install -y gawk \
|
|
|
|
wget \
|
|
|
|
git-core \
|
|
|
|
diffstat \
|
|
|
|
unzip \
|
|
|
|
texinfo \
|
|
|
|
gcc-multilib \
|
|
|
|
build-essential \
|
|
|
|
chrpath \
|
|
|
|
socat \
|
|
|
|
cpio \
|
|
|
|
python3 \
|
|
|
|
python3-pip \
|
|
|
|
python3-pexpect \
|
|
|
|
xz-utils \
|
|
|
|
debianutils \
|
|
|
|
iputils-ping \
|
|
|
|
locales \
|
|
|
|
libgmp-dev \
|
|
|
|
libmpc-dev \
|
|
|
|
libelf-dev \
|
2024-07-03 17:59:46 +00:00
|
|
|
vim \
|
2018-02-05 04:02:09 +00:00
|
|
|
sudo \
|
|
|
|
debootstrap \
|
2024-07-03 17:59:46 +00:00
|
|
|
file \
|
|
|
|
liblz4-tool \
|
|
|
|
zstd \
|
2021-02-12 15:23:10 +00:00
|
|
|
xwayland
|
2018-02-03 15:24:05 +00:00
|
|
|
|
|
|
|
# python
|
|
|
|
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
|
|
|
|
RUN locale-gen
|
|
|
|
RUN update-locale LANG=en_US.UTF-8
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
ENV LC_CTYPE en_US.UTF-8
|
|
|
|
|
|
|
|
RUN useradd -ms /bin/bash builder
|
2018-02-05 04:02:09 +00:00
|
|
|
RUN echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
2018-02-03 15:24:05 +00:00
|
|
|
|
|
|
|
USER builder
|
|
|
|
RUN echo ". /home/builder/citadel/setup-build-env" >> /home/builder/.bashrc
|
|
|
|
CMD ["bash"]
|
|
|
|
|
|
|
|
WORKDIR /home/builder/citadel/
|
|
|
|
|
|
|
|
# No command is run at this point
|