From 03ed8fe49ca24078ed34af756b74ce9d47c68b7b Mon Sep 17 00:00:00 2001 From: Lihan Date: Sat, 27 Jul 2024 13:43:59 -0400 Subject: [PATCH] Latest --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6b8b51f42..2dbfce412 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use an official OpenJDK runtime as a parent image -FROM openjdk:11-jdk +FROM openjdk # Set the working directory inside the container WORKDIR /app @@ -11,9 +11,8 @@ COPY mvnw pom.xml ./ # Copy the project source code COPY src ./src -RUN chmod +x ./mvnw # Package the application -RUN ./mvnw clean package -DskipTests -X +RUN ./mvnw clean package -DskipTests # Copy the JAR file to the app directory COPY target/*.jar app.jar