from ubuntu:20.04

# set timezone explicitly to avoid docker image build hanging on tzdata
RUN export DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install tzdata -y
RUN ln -fs /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
RUN dpkg-reconfigure --frontend noninteractive tzdata
RUN apt-get install apt-utils -y
RUN apt-get install build-essential -y
RUN apt-get install libboost-all-dev -y
RUN apt-get install doxygen -y
RUN apt-get install wget -y 
RUN apt-get install libssl-dev -y
RUN apt-get install libpq-dev -y
RUN apt-get install libfcgi-dev -y
RUN apt-get install libmysqlclient-dev -y
RUN apt-get install cmake -y
RUN apt-get install zlib1g-dev -y
RUN wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/GraphicsMagick-LATEST.tar.gz
RUN tar -xvf GraphicsMagick-LATEST.tar.gz
RUN cd GraphicsMagick-1.3.35 && ./configure && make && make install

COPY wt /src

WORKDIR /src

ENTRYPOINT ./build.sh

