mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
w/e
This commit is contained in:
parent
57045506f4
commit
d2b23badf3
1 changed files with 3 additions and 4 deletions
|
@ -11,12 +11,11 @@ COPY mvnw pom.xml ./
|
||||||
# Copy the project source code
|
# Copy the project source code
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
|
|
||||||
# Introduce an ARG to act as a cache breaker
|
# Use an argument to force a rebuild
|
||||||
ARG CACHEBUSTER=unknown
|
ARG FORCE_REBUILD=unknown
|
||||||
|
|
||||||
# Package the application
|
# Package the application
|
||||||
RUN ./mvnw clean package -Dmaven.test.skip=true
|
RUN ./mvnw clean package -Dmaven.test.skip=true && ls -alh /app/target/
|
||||||
RUN ls -alh /app/target/
|
|
||||||
|
|
||||||
# Move the JAR file to the app directory (update this if necessary based on actual JAR names)
|
# Move the JAR file to the app directory (update this if necessary based on actual JAR names)
|
||||||
COPY target/*.jar /app/app.jar
|
COPY target/*.jar /app/app.jar
|
||||||
|
|
Loading…
Reference in a new issue