From d2b23badf3c9a0fa336d6a655790d71e325ac8ea Mon Sep 17 00:00:00 2001 From: Lihan Date: Sun, 28 Jul 2024 00:55:11 -0400 Subject: [PATCH] w/e --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 213f27453..ae99560fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,12 +11,11 @@ COPY mvnw pom.xml ./ # Copy the project source code COPY src ./src -# Introduce an ARG to act as a cache breaker -ARG CACHEBUSTER=unknown +# Use an argument to force a rebuild +ARG FORCE_REBUILD=unknown # Package the application -RUN ./mvnw clean package -Dmaven.test.skip=true -RUN ls -alh /app/target/ +RUN ./mvnw clean package -Dmaven.test.skip=true && ls -alh /app/target/ # Move the JAR file to the app directory (update this if necessary based on actual JAR names) COPY target/*.jar /app/app.jar