We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88f16ce commit d108fecCopy full SHA for d108fec
1 file changed
backend/Dockerfile
@@ -0,0 +1,14 @@
1
+# ---------- BUILD STAGE ----------
2
+FROM maven:3.9.6-eclipse-temurin-21 AS build
3
+WORKDIR /app
4
+COPY pom.xml .
5
+RUN mvn -B -q -e -DskipTests dependency:go-offline
6
+COPY src ./src
7
+RUN mvn clean package -DskipTests
8
+
9
+# ---------- RUN STAGE ----------
10
+FROM eclipse-temurin:21-jre
11
12
+COPY --from=build /app/target/*.jar backend.jar
13
+EXPOSE 8081
14
+ENTRYPOINT ["java","-jar","backend.jar"]
0 commit comments