From ead10ac619d044e58cb8ebad82802c9aad60194c Mon Sep 17 00:00:00 2001 From: AlexeyDybov Date: Thu, 20 Apr 2017 18:07:33 +0300 Subject: [PATCH] Create image from java official image --- Dockerfile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0aacf87..df909be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,25 @@ # Browser Mob Proxy -FROM ubuntu:16.04 - -ENV DEBIAN_FRONTEND noninteractive +FROM openjdk:8-jdk #======================== # Miscellaneous packages # Includes minimal runtime used for executing non GUI Java programs #======================== -RUN apt-get update -qqy \ - && apt-get -qqy --no-install-recommends install \ +RUN apt-get update && apt-get -qqy --no-install-recommends install \ bzip2 \ ca-certificates \ - openjdk-8-jre-headless \ sudo \ unzip \ wget \ - && rm -rf /var/lib/apt/lists/* \ - && sed -i 's/securerandom\.source=file:\/dev\/random/securerandom\.source=file:\/dev\/urandom/' ./usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/java.security - + locales \ + && localedef -f UTF-8 -i ru_RU ru_RU.UTF-8 + +ENV LANG ru_RU.UTF-8 +ENV LC_ALL ru_RU.UTF-8 +#Set RU TimeZone +ENV TZ "Europe/Moscow" + # BMP install ENV BMP_VERSION 2.1.4 RUN wget -O browsermob-proxy.zip https://github.com/lightbody/browsermob-proxy/releases/download/browsermob-proxy-$BMP_VERSION/browsermob-proxy-$BMP_VERSION-bin.zip \