Commit a070ccf6 authored by Khalid Ali's avatar Khalid Ali

Gradle build project in Dockerfile

parent 9de9cc4c
Pipeline #3701 passed with stages
in 9 minutes and 15 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 ./build/libs/cas.war /tmp/cas-overlay/
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
......
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