Commit ca0c50ef authored by Khalid Ali's avatar Khalid Ali

Merge branch 'feature/add-docker' into 'master'

Dockerize CAS server

Closes #1

See merge request !1
parents a61f42e1 a070ccf6
Pipeline #3702 passed with stages
in 8 minutes and 41 seconds
FROM gradle:jdk11 as builder
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle build
FROM openjdk:11-jre-slim
COPY --from=builder /home/gradle/src/build/libs/cas.war /tmp/cas-overlay/
COPY ./tomcat.keystore /etc/cas/tomcat.keystore
COPY ./src/main/resources/etc/cas /etc/cas
WORKDIR /tmp/cas-overlay
EXPOSE 9443
CMD ["java", "-jar", "/tmp/cas-overlay/cas.war"]
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment