加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
huangwb 提交于 2017-12-05 17:40 . updated
FROM centos:centos7
MAINTAINER Kawhii Carl (huang.wenbin@foxmail.com)
ENV PATH=$PATH:$JRE_HOME/bin
RUN yum -y install maven
RUN yum -y install wget tar unzip git \
&& yum -y clean all
# Download Azul Java, verify the hash, and install \
RUN set -x; \
java_version=8.0.112; \
zulu_version=8.19.0.1; \
java_hash=3f95d82bf8ece272497ae2d3c5b56c3b; \
cd / \
&& wget http://cdn.azul.com/zulu/bin/zulu$zulu_version-jdk$java_version-linux_x64.tar.gz \
&& echo "$java_hash zulu$zulu_version-jdk$java_version-linux_x64.tar.gz" | md5sum -c - \
&& tar -zxvf zulu$zulu_version-jdk$java_version-linux_x64.tar.gz -C /opt \
&& rm zulu$zulu_version-jdk$java_version-linux_x64.tar.gz \
&& ln -s /opt/zulu$zulu_version-jdk$java_version-linux_x64/jre/ /opt/jre-home;
EXPOSE 8888 8443
ENV JAVA_HOME /opt/jre-home
ENV PATH $PATH:$JAVA_HOME/bin:.
ADD . /usr/local/service
RUN chmod +x /usr/local/service/run-cas.sh;
WORKDIR /usr/local/service
RUN mvn install
#RUN java -jar sso-config/target/sso-config.jar &
#CMD ["java","-jar","sso-server/target/cas.war"]
CMD ["run-cas.sh"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化