Skip to content

Instantly share code, notes, and snippets.

@roylarsen roylarsen/Dockerfile Secret
Created Jun 4, 2019

Embed
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 ["catalina.sh", "run"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.