forked from khadas/fenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (21 loc) · 1.5 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
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" ]