diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..18f9e0f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +# Multistage build in Docker +# building the application +FROM maven:3-openjdk-8 AS builder +RUN git clone https://github.com/wakaleo/game-of-life.git && cd game-of-life && mvn package + + +# application image +FROM tomcat:9 +LABEL author="khaja" +COPY --from=builder /game-of-life/gameoflife-web/target/gameoflife.war /usr/local/tomcat/webapps/gameoflife.war +EXPOSE 8080