mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
fix: use RUN cp for target folder instead
This commit is contained in:
parent
033ecf1a03
commit
eb217f4815
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ COPY src ./src
|
||||||
# Package the application
|
# Package the application
|
||||||
RUN ./mvnw clean package -DskipTests
|
RUN ./mvnw clean package -DskipTests
|
||||||
|
|
||||||
# Copy the JAR file to the app directory
|
# Copy the JAR file to the app directory. This is created in the build process
|
||||||
COPY target/*.jar app.jar
|
RUN cp /app/target/*.jar app.jar
|
||||||
|
|
||||||
# Run the jar file
|
# Run the jar file
|
||||||
CMD ["java", "-jar", "app.jar"]
|
CMD ["java", "-jar", "app.jar"]
|
||||||
|
|
Loading…
Reference in a new issue