FROM ubuntu:20.04
RUN apt-get update -y 
RUN apt-get install -y openjdk-8-jdk 
RUN apt-get install -y ant 
RUN apt-get install -y libgtk-3-0 
RUN apt-get install -y libdbus-glib-1-2 \
    && DEBIAN_FRONTEND=noninteractive 
RUN apt-get install -y locales \
    && sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
    && dpkg-reconfigure --frontend=noninteractive locales \
    && update-locale LANG=en_US.UTF-8 
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
 

ENV LANG en_US.UTF-8 
ENV LC_ALL en_US.UTF-8
RUN apt-get -qqy update -y 
RUN apt-get -qqy -y --no-install-recommends install \
    libfontconfig \
    libfreetype6 \
    xfonts-cyrillic \
    xfonts-scalable \
    fonts-liberation \
    fonts-ipafont-gothic \
    fonts-wqy-zenhei \
    fonts-tlwg-loma-otf \
    ttf-ubuntu-font-family \
    fonts-indic 
RUN rm -rf /var/lib/apt/lists/*
RUN apt-get -qyy -y clean

ADD ./realbrowser /var/www/  
WORKDIR /var/www/
RUN chmod +x /var/www/script.sh


