Skip to content

Instantly share code, notes, and snippets.

Created June 4, 2019 01:24
What would you like to do?
FROM gradle:5.4-jdk8 as build
COPY --chown=gradle:gradle . /home/gradle/project
WORKDIR /home/gradle/project
RUN gradle build
FROM internal-repository/mhb/tomcat:0.0.1
COPY --from=build /home/gradle/project/heartbeatWeb/build/libs/heartbeat.war /usr/local/tomcat/webapps
COPY --from=build /home/gradle/project/restServices/build/libs/restServices.war /usr/local/tomcat/webapps
COPY --from=build /home/gradle/project/heartbeatDevToolsWeb/build/libs/heartbeatDevTools_war.war /usr/local/tomcat/webapps
CMD ["", "run"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment