content: FROM debian:11
  
  RUN dpkg --add-architecture armhf && apt-get update
  RUN dpkg --add-architecture arm64 && apt-get update
  RUN apt-get install -y \
          build-essential \
          curl \
          crossbuild-essential-armhf \
          crossbuild-essential-arm64 \
          git \
          libprocps-dev:armhf \
          libprocps-dev:arm64 \
          libssl-dev:armhf \
          libssl-dev:arm64 \
          libz-dev:armhf \
          libz-dev:arm64 \
          libasio-dev \
          ninja-build \
          ninja-build \
          npm \
          ccache \
          qemu-user
  
  
  ENV NPM_CONFIG_UNSAFE_PERM true
  ENV NVM_DIR /tmp/.nvm
  RUN mkdir -p $NVM_DIR \
   && curl -s https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash \
   && . $NVM_DIR/nvm.sh \
   && nvm install 16 \
   && chmod a+rwX -R $NVM_DIR
  
  # Ensure a new enough version of CMake is available.
  RUN mkdir -p /home/jenkins/cmake && \
      cd /home/jenkins/cmake && \
      curl -O -J https://cmake.org/files/v3.23/cmake-3.23.2-linux-x86_64.tar.gz &&\
      tar zxf cmake-3.23.2-linux-x86_64.tar.gz
  ENV PATH "/home/jenkins/cmake/cmake-3.23.2-linux-x86_64/bin:$PATH"
  