diff --git a/Dockerfile b/Dockerfile index 73ad51c..d26c16b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,13 +8,12 @@ # The "Build" stage. Copies the entire project into the container, into the /app/ folder, and builds it. FROM eclipse-temurin:17 AS BUILD -RUN apt update && apt install unzip -y COPY . /app/ WORKDIR /app/ -RUN ./mvnw -C clean test package -Pproduction +RUN ./mvnw -C -e clean package -Pproduction WORKDIR /app/target/ RUN ls -la -RUN unzip *.zip -d app/ +RUN mkdir app && tar xvzf *.tar.gz -C app # At this point, we have the app (executable bash scrip plus a bunch of jars) in the # /app/target/app/ folder. diff --git a/src/main/assembly/zip.xml b/src/main/assembly/zip.xml index befddbe..d0bb0d7 100644 --- a/src/main/assembly/zip.xml +++ b/src/main/assembly/zip.xml @@ -4,6 +4,7 @@ zip zip + tar.gz false