We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90e9989 commit 07c8287Copy full SHA for 07c8287
.gitignore
@@ -33,3 +33,5 @@ build/
33
.vscode/
34
35
.env
36
+
37
+.cache/.m2/repository
Dockerfile
@@ -13,7 +13,13 @@ COPY .mvn .mvn
13
COPY pom.xml .
14
COPY src ./src
15
16
-RUN mvn clean install -DskipTests --settings .mvn/settings.xml
+# Install dependencies first (this layer will be cached)
17
+RUN --mount=type=cache,target=/root/.m2 \
18
+ mvn dependency:go-offline --settings .mvn/settings.xml
19
20
+# Build the application
21
22
+ mvn clean install -DskipTests --settings .mvn/settings.xml
23
24
# Run stage
25
FROM eclipse-temurin:21-jre-jammy
0 commit comments