1 Star 2 Fork 5

六合/Dockerfile_tomcat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 873 Bytes
一键复制 编辑 原始数据 按行查看 历史
nosix 提交于 2015-07-30 14:21 . Dockerfile
#
# MAINTAINER Nosix,nosix <six.heyaxiang@gmail.com>
# DOCKER-VERSION 1.6.2
#
# Dockerizing CentOS7: Dockerfile for building CentOS images
#
FROM centos:centos7.1.1503
MAINTAINER Nosix,nosix <six.heyaxiang@gmail.com>
ENV TZ "Asia/Shanghai"
ENV TERM xterm
RUN yum install -y curl wget tar bzip2 unzip vim-enhanced passwd sudo yum-utils hostname net-tools rsync man && \
yum clean all
#java配置
ADD jdk-7u80-linux-x64.tar.gz /usr/local/moji
ENV JAVA_HOME /usr/local/moji/jdk1.7.0_80
ENV CLASSPATH $JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
ENV PATH $PATH:$JAVA_HOME/bin
#tomcat配置
ADD apache-tomcat-7.0.63.tar.gz /opt
RUN cd /opt/ && mv apache-tomcat-7.0.63 apache-tomcat
ENV CATALINA_HOME /opt/apache-tomcat
ENV PATH $CATALINA_HOME/bin:$PATH
WORKDIR $CATALINA_HOME
EXPOSE 8080 22
CMD ["catalina.sh", "run"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/six-heyaxiang/Dockerfile_tomcat.git
git@gitee.com:six-heyaxiang/Dockerfile_tomcat.git
six-heyaxiang
Dockerfile_tomcat
Dockerfile_tomcat
master

搜索帮助