Skip to content

Commit

Permalink
Merge pull request #63 from SpringBootCourses/#62
Browse files Browse the repository at this point in the history
#62 Improve Dockerfile
  • Loading branch information
IlyaLisov committed May 27, 2024
2 parents b405d95 + ed5d284 commit ce64c80
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM maven:3.8.5-openjdk-17 AS build
WORKDIR /
COPY pom.xml .
RUN mvn dependency:go-offline
COPY /src /src
COPY checkstyle-suppressions.xml /
COPY pom.xml /
RUN mvn -f /pom.xml clean package
COPY checkstyle-suppressions.xml .
RUN mvn clean package -DskipTests

FROM openjdk:17-jdk-slim
COPY --from=build /target/*.jar application.jar
Expand Down

0 comments on commit ce64c80

Please sign in to comment.