This commit is contained in:
Lihan 2024-07-27 13:43:59 -04:00
parent c7f666a10b
commit 03ed8fe49c

View file

@ -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