FROM --platform=$TARGETOS/$TARGETARCH ubuntu:24.04 ENV DEBIAN_FRONTEND=noninteractive ## add container user RUN useradd -m -d /home/container -s /bin/bash container ## update base packages RUN apt update && \ apt upgrade -y ## install dependencies RUN apt install -y iproute2 \ curl \ git \ zip \ unzip \ tar \ xz-utils \ apt-transport-https \ openssl \ libssl3 \ default-libmysqlclient-dev \ libmysqlclient-dev \ libreadline-dev \ libncurses-dev \ libtool \ python3 \ locales \ ffmpeg \ libc6 \ binutils \ liblua5.1-0 ## configure locale RUN update-locale lang=en_US.UTF-8 && \ dpkg-reconfigure --frontend noninteractive locales WORKDIR /home/container COPY ./entrypoint.sh /entrypoint.sh CMD [ "/bin/bash", "/entrypoint.sh" ]