Skip to content

Commit 885579b

Browse files
build: add Dockerfile
1 parent b8aa22c commit 885579b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM maven:4.0.0-rc-5-eclipse-temurin-21-alpine AS build
2+
WORKDIR /app
3+
COPY pom.xml .
4+
COPY src/ ./src
5+
RUN mvn clean package -DskipTests
6+
7+
FROM eclipse-temurin:21-jre-alpine-3.23
8+
WORKDIR /app
9+
COPY --from=build /app/target/*.jar app.jar
10+
EXPOSE 8080
11+
ENTRYPOINT ["java", "-jar", "app.jar"]

0 commit comments

Comments
 (0)