From eb217f481550983b443d760e3c92a69fb09a6257 Mon Sep 17 00:00:00 2001 From: Nicholas Mucks Date: Sat, 27 Jul 2024 19:20:56 -0700 Subject: [PATCH] fix: use RUN cp for target folder instead --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2dbfce412..0e394b307 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,8 +14,8 @@ COPY src ./src # Package the application RUN ./mvnw clean package -DskipTests -# Copy the JAR file to the app directory -COPY target/*.jar app.jar +# Copy the JAR file to the app directory. This is created in the build process +RUN cp /app/target/*.jar app.jar # Run the jar file CMD ["java", "-jar", "app.jar"]