Sign inSign up

seeaganesh/java8-172-centos

By seeaganesh

•Updated over 8 years ago

Image
0

2.9K

seeaganesh/java8-172-centos repository overview

please see the docker file as follows

⁠this is demo centos and Java 8 image

⁠Prepared by Ganesh Jadhav

FROM centos MAINTAINER Ganesh Jadhav, [email protected]⁠

⁠Upgrading system

RUN yum -y upgrade RUN yum -y install wget

ENV JAVA_VERSION 8u172 ENV BUILD_VERSION b11

⁠Downloading Java

RUN wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u172-b11/a58eab1ec242421181065cdc37240b08/jdk-8u172-linux-x64.rpm⁠"

RUN yum -y install jdk-$JAVA_VERSION-linux-x64.rpm

RUN alternatives --install /usr/bin/java jar /usr/java/latest/bin/java 200000 RUN alternatives --install /usr/bin/javaws javaws /usr/java/latest/bin/javaws 200000 RUN alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 200000

RUN mkdir /opt/ganesh-work

RUN mkdir /opt/ganesh-work/log

WORKDIR /opt/ganesh-work

#ADD ./Spring-work/chat-demo-service/target/chat-demo-0.0.1-SNAPSHOT.jar /opt/ganesh-work

ENV JAVA_HOME /usr/java/latest

CMD /usr/java/latest/bin/java -version

EXPOSE 7000

Tag summary

Content type

Image

Digest

Size

574.5 MB

Last updated

over 8 years ago

docker pull seeaganesh/java8-172-centos