Skip to content

Commit 346dd56

Browse files
author
Ramachandran Nellaiyappan
committed
[feat] Dockerfile updated to add maven build
1 parent fc12bdf commit 346dd56

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Maven Build
2+
FROM maven:3-eclipse-temurin-21-alpine AS builder
3+
COPY pom.xml /app/
4+
COPY src /app/src
5+
RUN --mount=type=cache,target=/root/.m2 mvn -f /app/pom.xml clean package -DskipTests
6+
7+
# Run jar file with appropriate veriables
18
FROM eclipse-temurin:21
29
EXPOSE 8080
310
COPY target/*.jar journey-api.jar

0 commit comments

Comments
 (0)