content: # The list of required arguments
  # ARG teamcityAgentImage
  
  # Id teamcity-agent
  # Tag ${versionTag}-linux${linuxVersion}-sudo
  # Platform ${linuxPlatform}
  # Repo ${repo}
  # Weight 1
  
  ## ${agentCommentHeader}
  ## This image allows to do *__sudo__* without a password for the *__buildagent__* user. ## To enable Docker, please add the following arguments: ```--privileged -e DOCKER_IN_DOCKER=start```.
  
  # @AddToolToDoc [${jdkLinuxComponentName}](${jdkLinuxComponent})
  # @AddToolToDoc [Python venv](https://docs.python.org/3/library/venv.html#module-venv)
  # @AddToolToDoc ${gitLFSLinuxComponentName}
  # @AddToolToDoc ${gitLinuxComponentName}
  # @AddToolToDoc Mercurial
  # @AddToolToDoc ${dockerLinuxComponentName}
  # @AddToolToDoc ${containerdIoLinuxComponentName}
  # @AddToolToDoc [${dotnetLinuxComponentName}](${dotnetLinuxComponent})
  # @AddToolToDoc ${p4Name}
  
  # Based on ${teamcityAgentImage}
  FROM ${teamcityAgentImage}
  
  USER root
  
  RUN apt-get update && \
      apt-get install -y --no-install-recommends sudo && \
      # https://github.com/goodwithtech/dockle/blob/master/CHECKPOINT.md#dkl-di-0005
      apt-get clean && rm -rf /var/lib/apt/lists/* && \
      echo 'buildagent ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \  
      rm -rf /var/lib/apt/lists/*
  
  USER buildagent
  