content: # [Choice] Debian OS version (use bullseye on local arm64/Apple Silicon): buster, bullseye
  ARG VARIANT="bullseye"
  FROM rust:1-${VARIANT}
  
  # [Option] Install zsh
  ARG INSTALL_ZSH="true"
  # [Option] Upgrade OS packages to their latest versions
  ARG UPGRADE_PACKAGES="false"
  # Install needed packages and setup non-root user. Use a separate RUN statement to add your own dependencies.
  ARG USERNAME=s1000831
  ARG USER_UID=1400950743
  ARG USER_GID=1283478178
  COPY library-scripts/*.sh library-scripts/*.env /tmp/library-scripts/
  RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
      # Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131
      && apt-get purge -y imagemagick imagemagick-6-common \
      # Install common packages, non-root user, updated lldb, dependencies
      && bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" "true" "true" \
      && bash /tmp/library-scripts/rust-debian.sh "${CARGO_HOME}" "${RUSTUP_HOME}" "${USERNAME}" "true" "true" \
      && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
  
  # [Optional] Uncomment this section to install additional OS packages.
  # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
  #     && apt-get -y install --no-install-recommends <your-package-list-here>