Snippets

troii Software GmbH multistage build

Created by Thomas Einwaller
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

Comments (0)