From d93d454c20c9ee7b0745b7b5004f0d327994c595 Mon Sep 17 00:00:00 2001 From: Ng Heng Khai Date: Sun, 28 Apr 2024 17:11:41 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4ea0117..92cdb38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,9 +12,15 @@ ARG JAR_FILE=*.jar # Copy the JAR file from the build context into the Docker image. COPY target/${JAR_FILE} application.jar +#COPY .mvn/ .mvn +#COPY mvnw pom.xml ./ + +#COPY src ./src #CMD apt-get update -y # Set the default command to run the Java application. #ENTRYPOINT ["java", "-Xmx2048M", "-jar", "/application.jar"] ENTRYPOINT ["java","-jar","/application.jar"] +#RUN ./mvnw install -DskipTests +#CMD ["./mvnw", "spring-boot:run"]