Created
August 2, 2025 07:40
-
-
Save ahhajlou/10181ceb6ae6558bd9844f383763b53a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
ARG DEBIAN_FRONTEND=noninteractive | |
ARG TZ=Asia/Tehran | |
# For ubuntu, do not use dash. | |
RUN which dash &> /dev/null && (\ | |
echo "dash dash/sh boolean false" | debconf-set-selections && \ | |
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash) || \ | |
echo "Skipping dash reconfigure (not applicable)" | |
RUN dpkg --add-architecture i386 \ | |
&& apt-get update \ | |
&& apt-get upgrade -y \ | |
&& apt-get install -y sudo tmux vim nano \ | |
&& useradd -G sudo -m --shell /bin/bash buildroot \ | |
&& echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \ | |
&& echo "buildroot:buildroot" | chpasswd | |
# Update ssl certificates | |
RUN apt-get install --only-upgrade ca-certificates && update-ca-certificates | |
RUN apt-get install -y gawk wget git diffstat unzip \ | |
texinfo gcc build-essential chrpath socat cpio \ | |
python3 python3-pip python3-pexpect xz-utils debianutils \ | |
iputils-ping python3-git python3-jinja2 python3-subunit chrpath \ | |
zstd liblz4-tool file locales libacl1 \ | |
make libc6:i386 lib32z1 lib32stdc++6 \ | |
zlib1g-dev libncurses5-dev ncurses-term libncursesw5-dev g++ u-boot-tools:i386 texinfo \ | |
texlive gawk libssl-dev openssl bc | |
RUN sh -c 'echo "" > /etc/ld.so.preload' | |
RUN chown buildroot:buildroot -R /opt | |
#VOLUME ["/opt/buildroot-docker"] | |
ENTRYPOINT ["/bin/bash"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment