FROM centos:7
MAINTAINER Henry
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV LC_CTYPE en_US.UTF-8
ENV LC_MESSAGES en_US.UTF-8
# Upgrade centos OS on Docker
RUN yum install epel-release -y
RUN yum install gcc-c++ -y
RUN yum install -y python-devel python-setuptools
# Install Java
RUN yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel
ENV JAVA_HOME /etc/alternatives/jre
# Install Apache Tomcat
ENV TOMCAT_MAJOR 8
ENV TOMCAT_VERSION 8.5.57
RUN yum install -y wget
RUN wget http://ftp.mirror.tw/pub/apache/tomcat/tomcat-${TOMCAT_MAJOR}/v${TOMCAT_VERSION}/bin/apache-tomcat-${TOMCAT_VERSION}.tar.gz
RUN tar zxvf apache-tomcat-${TOMCAT_VERSION}.tar.gz
Content type
Image
Digest
Size
415.8 MB
Last updated
over 6 years ago
docker pull sdhenry925/centos-tomcat-java:1.0