FROM ubuntu:22.10

RUN rm -f /etc/apt/apt.conf.d/docker-clean

RUN --mount=type=cache,target=/var/cache/apt \
    --mount=type=cache,target=/var/lib/apt/lists \
    DEBIAN_FRONTEND="noninteractive" apt-get update \
    && apt-get -y install tzdata

RUN --mount=type=cache,target=/var/cache/apt \
    --mount=type=cache,target=/var/lib/apt/lists \
     apt-get update \
  && apt-get install -y \
      autoconf \
      automake \
      build-essential \
      clang \
      cmake \
      dos2unix \
      g++ \
      gcc \
      gdb \
      git \
      libtool \
      locales-all \
      make \
      ninja-build \
      python3 \
      python3-dev \
      rsync \
      tar \
      valgrind \
      wget \
      xorriso \
  && apt-get clean