<filename>build-base/Dockerfile
FROM ubuntu:18.04

# Get g++
RUN apt-get update -q && apt-get install -q -y --no-install-recommends \
    software-properties-common \
    build-essential \
    wget

# Install cmake
RUN apt purge --auto-remove cmake
RUN wget https://cmake.org/files/v3.14/cmake-3.14.1.tar.gz
RUN tar -xzvf cmake-3.14.1.tar.gz
WORKDIR ./cmake-3.14.1/
RUN ./bootstrap
RUN make -j4
RUN make install

# Install entr for automating builds
RUN apt-get update -qq && apt-get install -q -y --no-install-recommends \
    entr

WORKDIR /workarea
