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