mirror of
https://github.com/khadas/fenix.git
synced 2025-07-21 23:44:16 +00:00
25 lines
1.5 KiB
Docker
25 lines
1.5 KiB
Docker
FROM ubuntu:24.04
|
|
RUN dpkg --add-architecture i386
|
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y sudo git dialog lsb-release binutils wget ca-certificates device-tree-compiler \
|
|
pv bc lzop zip binfmt-support build-essential ccache debootstrap ntpdate gawk gcc-arm-linux-gnueabihf gcc-10-arm-linux-gnueabihf \
|
|
qemu-user-static u-boot-tools uuid-dev zlib1g-dev unzip libusb-1.0-0-dev parted pkg-config libncurses5-dev whiptail debian-keyring \
|
|
debian-archive-keyring f2fs-tools libfile-fcntllock-perl rsync libssl-dev btrfs-progs ncurses-term kmod dosfstools libc6-dev-armhf-cross \
|
|
fakeroot curl patchutils python3 liblz4-tool linux-base swig aptly acl systemd-container udev g++-10-arm-linux-gnueabihf \
|
|
lib32stdc++6 libc6-i386 lib32ncurses6 lib32tinfo6 locales ncurses-base zlib1g:i386 pixz bison libbison-dev flex libfl-dev lib32z1 tzdata cpio \
|
|
libglib2.0-dev libtool gettext bsdmainutils bash-completion mtools e2tools e2fsprogs file pigz zstd uuid-runtime fdisk xxd debhelper libelf-dev \
|
|
python3-setuptools python3-dev python3-pyelftools libgnutls28-dev gcc-aarch64-linux-gnu
|
|
RUN locale-gen en_US.UTF-8
|
|
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' TERM=screen
|
|
|
|
# Switch to normal user
|
|
RUN userdel -f -r ubuntu
|
|
RUN useradd -c 'khadas' -m -d /home/khadas -s /bin/bash khadas
|
|
RUN sed -i -e '/\%sudo/ c \%sudo ALL=(ALL) NOPASSWD: ALL' /etc/sudoers
|
|
RUN usermod -a -G sudo khadas
|
|
|
|
USER khadas
|
|
|
|
WORKDIR /home/khadas/fenix
|
|
ENTRYPOINT [ "/bin/bash" ]
|