Snippets

troii Software GmbH multistage build

Created by Thomas Einwaller

File snippet.txt Added

  • Ignore whitespace
  • Hide word diff
+FROM openjdk:8-jdk as builder
+COPY . /app
+WORKDIR /app
+RUN /app/gradlew --no-daemon clean assemble
+
+FROM registry.troii.net/tomcat:8
+MAINTAINER Thomas Einwaller, tom@troii.com
+COPY catalina.properties /usr/local/tomcat/conf/
+COPY --from=builder /app/timrweb/build/libs/timr.war /usr/local/tomcat/webapps/timr.war
+
+EXPOSE 8080
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.