-
Notifications
You must be signed in to change notification settings - Fork 429
/
Dockerfile
39 lines (27 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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"]