#
#  Mediacentric base docker image
#
FROM debian:jessie
MAINTAINER Bertin

# Uncomment and set appropriate value if proxy required for packages installation
# ENV http_proxy 'http://172.16.10.15:3128'
# ENV https_proxy 'http://172.16.10.15:3128'

#  update file apt/sources.list repo mirror to be used
COPY apt/sources.list /etc/apt/sources.list

RUN apt-get update
RUN apt-get install -y apt-utils
RUN apt-get install -y -t jessie-backports openjdk-8-jre-headless
RUN apt-get install -y vim
RUN apt-get install -y curl
RUN apt-get install -y openvpn
RUN apt-get install -y net-tools
RUN apt-get install -y locales
RUN apt-get install -y keyboard-configuration
RUN apt-get install -y geoip-bin

RUN mkdir /opt/bertin
RUN chmod 755 /opt/bertin
ENV MEDIACENTRIC_HOME '/opt/bertin/mediacentric'
ENV JAVA_HOME '/usr/lib/jvm/java-1.8.0-openjdk-amd64/'
ENV JAVA_TOOL_OPTIONS '-Dfile.encoding=UTF8'
