We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bee46ba + f9455c5 commit cc83e4dCopy full SHA for cc83e4d
2 files changed
Dockerfile
Dockerfile.java
@@ -0,0 +1,17 @@
1
+#build stage
2
+FROM maven:3.9-eclipse-temurin-17-alpine AS builder
3
+WORKDIR /build
4
+COPY pom.xml .
5
+RUN mvn dependency:go-offline -B
6
+COPY src ./src
7
+RUN mvn clean package -DskipTests
8
+
9
+#runtime stage
10
+FROM eclipse-temurin:17-jdk-alpine
11
12
+WORKDIR /app
13
14
+# Copy the JAR from the build stage
15
+COPY --from=builder /build/target/concore-*.jar /app/concore.jar
16
+EXPOSE 3000
17
+CMD ["java", "-jar", "/app/concore.jar"]
0 commit comments