- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
Latest commit
13 lines (12 loc) · 347 Bytes
/
Copy pathDockerfile
File metadata and controls
13 lines (12 loc) · 347 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM eclipse-temurin:25.0.1_8-jdk-alpine-3.22 AS builder
WORKDIR /app
COPY .mvn .mvn/
COPY mvnw pom.xml ./
RUN ./mvnw dependency:go-offline -q
COPY src src/
RUN ./mvnw package -DskipTests -q
FROM eclipse-temurin:25.0.1_8-jre-alpine-3.22
WORKDIR /app
COPY --from=builder /app/target/*.jar app.jar
EXPOSE 8085
ENTRYPOINT ["java", "-jar", "app.jar"]