FROM ubuntu:groovy
LABEL Description="Ubuntu Groovy Gorilla environment to build and test Wyrmgus"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
# Build deps
RUN apt-get -y install \
  build-essential \
  cmake \
  g++-9 \
  git \
  libboost-dev \
  liblua5.1-dev \
  libsdl2-mixer-dev \
  libsdl2-dev \
  libsqlite3-dev \
  libtolua++5.1-dev \
  qtbase5-dev \
  qtlocation5-dev \
  qtmultimedia5-dev \
  qtpositioning5-dev \
;
# Set g++ version to avoid Boost "use of deleted function" error
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 10
# Runtime deps
RUN apt-get -y install \
  qml-module-qtquick-controls2 \
  qml-module-qtquick-window2 \
  qml-module-qtquick2 \
  xvfb \
;
# CI deps
RUN apt-get -y install lintian
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
