We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 856a4e2 commit 83508d2Copy full SHA for 83508d2
Dockerfile
@@ -6,7 +6,7 @@ COPY src ./src
6
RUN mvn clean package -DskipTests
7
8
# Stage 2: Run the application
9
-FROM eclipse-temurin:21-jdk
+FROM eclipse-temurin:21-jre
10
WORKDIR /app
11
-COPY --from=build /app/target/my-app-1.0-SNAPSHOT.jar app.jar
12
-CMD ["java", "-jar", "app.jar"]
+COPY --from=build /app/target/simple-java-maven-app-1.0-SNAPSHOT.jar app.jar
+ENTRYPOINT ["java", "-jar", "app.jar"]
0 commit comments