FROM ubuntu:bionic

RUN apt-get update && \
        apt-get install --no-install-recommends -y \
        curl \
        openjdk-11-jdk-headless \
        make \
        clang \
        lld \
        mingw-w64 \
        lsb-release \
        tar \
        xz-utils \
        apt-transport-https \
        ca-certificates \
        gnupg \
        software-properties-common

RUN apt-get install -y \
        gcc-multilib-i686-linux-gnu \
        gcc-multilib-arm-linux-gnueabihf \
        gcc-aarch64-linux-gnu

RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
        apt-get install --no-install-recommends -y nodejs

RUN curl -sL https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add - && \
        echo "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" >> /etc/apt/sources.list && \
        apt-get update && \
        apt-get install --no-install-recommends -y cmake

RUN apt-get clean