mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
Latest
This commit is contained in:
parent
c7f666a10b
commit
03ed8fe49c
1 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
# Use an official OpenJDK runtime as a parent image
|
# Use an official OpenJDK runtime as a parent image
|
||||||
FROM openjdk:11-jdk
|
FROM openjdk
|
||||||
|
|
||||||
# Set the working directory inside the container
|
# Set the working directory inside the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -11,9 +11,8 @@ COPY mvnw pom.xml ./
|
||||||
# Copy the project source code
|
# Copy the project source code
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
|
|
||||||
RUN chmod +x ./mvnw
|
|
||||||
# Package the application
|
# Package the application
|
||||||
RUN ./mvnw clean package -DskipTests -X
|
RUN ./mvnw clean package -DskipTests
|
||||||
|
|
||||||
# Copy the JAR file to the app directory
|
# Copy the JAR file to the app directory
|
||||||
COPY target/*.jar app.jar
|
COPY target/*.jar app.jar
|
||||||
|
|
Loading…
Reference in a new issue