1 FROM --platform=linux/amd64 ubuntu:22.04
3 SHELL ["/bin/bash", "-c"]
9 ARG DEBIAN_FRONTEND=noninteractive
11 RUN apt-get update && \
27 software-properties-common \
30 ln -s /usr/bin/FileCheck-15 /usr/bin/FileCheck
32 RUN add-apt-repository ppa:deadsnakes/ppa && \
33 apt-get -y install libpython3.9
35 RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && \
43 RUN groupadd --gid $USER_GID $USERNAME \
44 && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME -s /bin/bash \
45 && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
46 && chmod 0440 /etc/sudoers.d/$USERNAME
48 RUN mkdir -p /workspaces && \
49 chown $USER_UID:$USER_GID /workspaces
51 ADD vcpkg-configuration.json /home/
52 ADD postCreateCommand.sh /home/
54 RUN chmod +x /home/postCreateCommand.sh
57 WORKDIR /home/$USERNAME