FROM maven:latest

RUN apt-get update

RUN apt-get install -y libgtk-3-bin xvfb dbus-x11 libgomp1

ENV DISPLAY=:99
ADD xvfb.sh /usr/bin/xvfb.sh
RUN chmod a+x /usr/bin/xvfb.sh