ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=22.04 |
ADD file:ebe009f86035c175ba244badd298a2582914415cf62783d510eab3a311a5d4e1 in / |
CMD ["/bin/bash"] |
RUN /bin/sh -c sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list # buildkit |
RUN /bin/sh -c sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list # buildkit |
RUN /bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -q build-essential sudo net-tools locales repo git ssh make gcc libssl-dev liblz4-tool g++ patchelf chrpath gawk texinfo diffstat binfmt-support qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib libgucharmap-2-90-dev device-tree-compiler bzip2 expat gpgv2 expect file rsync bc time cpp-aarch64-linux-gnu mtd-utils ncurses-dev unzip wget python3 python3-pip python3-setuptools python3-wheel python-is-python3 && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit |
RUN /bin/sh -c dpkg --add-architecture i386 && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -q zlib1g:i386 && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit |
RUN /bin/sh -c locale-gen en_US.UTF-8 && update-locale # buildkit |
RUN /bin/sh -c adduser --disabled-password --gecos '' rockchip && usermod -aG sudo rockchip && echo "rockchip ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers # buildkit |
RUN /bin/sh -c echo "dash dash/sh boolean false" | debconf-set-selections # buildkit |
RUN /bin/sh -c DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash # buildkit |
USER rockchip |
ENV HOME=/home/rockchip |
ENV LANG=en_US.UTF-8 |
ENV TERM=xterm-256color |
ENV GCC_COLORS=1 |
WORKDIR /home/rockchip/ |