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 ba77c0e commit 947f495Copy full SHA for 947f495
Dockerfile
@@ -0,0 +1,8 @@
1
+# Use a lightweight OpenJDK 17 base image
2
+FROM openjdk:17-jdk-slim
3
+
4
+# Copy the Spring Boot JAR file from the target directory into the image
5
+COPY target/*.jar app.jar
6
7
+# Set the entry point to run the JAR file
8
+ENTRYPOINT ["java", "-jar", "/app.jar"]
0 commit comments