Skip to content

Commit

Permalink
fix: added mvn clean install to Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
  • Loading branch information
PranshuSrivastava committed Jan 25, 2024
1 parent f8bb661 commit a28856b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spring-petclinic/spring-petclinic-rest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ WORKDIR /app
# Install Maven
RUN apt-get update && apt-get install -y maven

# Build the binary
RUN mvn clean install -Dmaven.test.skip=true

# Copy the current directory contents into the container at /app
COPY . /app/

Expand All @@ -23,4 +26,4 @@ RUN chmod +x setup_ca.sh

# Run the application when the container launches
# CMD ["java", "-jar", ""]
CMD ["/bin/bash", "-c", "source ./setup_ca.sh && java -jar target/spring-petclinic-rest-3.0.2.jar"]
CMD ["/bin/bash", "-c", "source ./setup_ca.sh && java -jar target/spring-petclinic-rest-3.0.2.jar"]

0 comments on commit a28856b

Please sign in to comment.