ref: 59fd661ed3816890a6bd80052a9efdc82197cec2
dir: /.devcontainer/Dockerfile/
FROM ubuntu ######### Apt dependencies ARG system_apt_dependencies="build-essential automake autoconf libtool git pkg-config python3 python3-pip sudo" ARG choco_apt_dependencies="gcc make libsdl2-dev libsdl2-net-dev libsdl2-mixer-dev" RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -qq $system_apt_dependencies $choco_apt_dependencies ########## Install Pillow (PIL) via pip, not apt ARG choco_pip_dependencies="pillow" RUN pip install $choco_pip_dependencies ########## Container user setup ARG USERNAME=chocodev ARG USER_UID=1000 ARG USER_GID=$USER_UID RUN groupadd --gid $USER_GID $USERNAME \ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME # Add sudo support RUN echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ && chmod 0440 /etc/sudoers.d/$USERNAME # Add the user to the audio group, to have ALSA sound access # TODO: pulseaudio, so this isn't necessary? RUN addgroup $USERNAME audio # Use bash, not sh. Yuck. RUN chsh $USERNAME -s /bin/bash USER $USERNAME # Make sure we actually own our own local share stuff RUN mkdir -p /home/$USERNAME/.local/share && \ chown -R $USERNAME:$USERNAME /home/$USERNAME/.local