# ARCH will be set appropriately by scripts/build_container_image.sh ARG ARCH FROM docker.io/${ARCH}/debian:bookworm-slim # Add apt download source information COPY resources/etc/apt /etc/apt/ # Add apt download source information # COPY resources/etc/local.d /etc/local.d # Add extra packages to containers/packages.txt ARG PACKAGES RUN apt-get update && apt-get upgrade -y \ && apt-get install -y ${PACKAGES} \ && apt-get clean # Add extra files you want to copy to 'resources' directory # Note 'app' itself will not be part of the container, but # used as a volume # copying 'resources_${PRODUCT}' is optional and will not error if missing # thanks to the [r] path glob. It is only intended for product quirks. ARG PRODUCT COPY resources [r]esources_${PRODUCT} / # Modify as necessary RUN useradd -m -u 1000 atmark RUN echo "/vol_app/lib" > /etc/ld.so.conf.d/atmark.conf ENV LD_LIBRARY_PATH=/vol_app/lib # Create a user ARG USERNAME=webment ARG GROUPNAME=webment ARG UID=1001 ARG GID=1001 ARG PASSWORD=webment RUN groupadd -g $GID $GROUPNAME && \ useradd -m -s /bin/bash -u $UID -g $GID $USERNAME && \ echo $USERNAME:$PASSWORD | chpasswd # echo "$USERNAME ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers # Switch to the user #USER webment WORKDIR /home/webment # Download AWS Signin Helper tool RUN curl -O https://rolesanywhere.amazonaws.com/releases/1.2.0/Aarch64/Linux/aws_signing_helper RUN chmod 777 aws_signing_helper