Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
#62 Improve Dockerfile
  • Loading branch information
IlyaLisov committed May 27, 2024
commit ec2a1fcca09b39619e5a7adb180b6bb43d522774
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 package -DskipTests

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